-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
docker-compose.yml
38 lines (37 loc) · 1.15 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
db:
deploy:
restart_policy:
condition: unless-stopped
delay: 5s
window: 20s
image: postgres:16-alpine
environment:
POSTGRES_USER: rubbergod
POSTGRES_DB: rubbergod
POSTGRES_HOST_AUTH_METHOD: "trust"
command: ["postgres", "-c", "logging_collector=on", "-c", "log_directory=/var/log/", "-c", "log_filename=postgresql.log", "-c", "log_file_mode=0644", "-c", "log_rotation_size=200MB"]
volumes:
- ./logs:/var/log:Z
- postgres_data:/var/lib/postgresql/data/
- ./database/backup/backup.sql:/docker-entrypoint-initdb.d/backup.sql
bot:
deploy:
restart_policy:
condition: unless-stopped
delay: 5s
window: 20s
image: rubbergod-bot
build:
context: .
dockerfile: Dockerfile
tags:
- rubbergod-bot
volumes:
- .:/rubbergod:Z
- ssh_config:/root/.ssh:Z
depends_on:
- db
volumes:
postgres_data:
ssh_config: