-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
60 lines (49 loc) · 1.1 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.9'
services:
wcb3:
container_name: wcb3_container
build:
context: .
dockerfile: Dockerfile
pull_policy: build
restart: unless-stopped
env_file: stack.env
entrypoint: ['python', 'bot.py']
depends_on:
wcb3_postgres:
condition: service_healthy
wcb3_postgres:
container_name: wcb3_postgres_container
image: postgres:16
restart: always
env_file: stack.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
expose:
- "5432"
volumes:
- ./database/postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
adminer:
container_name: wcb3_adminer_container
image: adminer
restart: unless-stopped
ports:
- 8080:8080
depends_on:
wcb3_postgres:
condition: service_healthy
backup:
image: eeshugerman/postgres-backup-s3:16
env_file: stack.env
environment:
SCHEDULE: '@daily'
BACKUP_KEEP_DAYS: 3
volumes:
postgres_data:
networks:
esnet: