generated from PeoplePlusAI/New-Working-Group
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
61 lines (54 loc) · 1.16 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
60
61
name: digiform
services:
telegram-bot:
build: .
command: python3 telegram-bot/run.py
volumes:
- .:/code
restart: always
depends_on:
backend:
condition: service_started
backend:
build: .
env_file:
- .env
ports:
- "${PORT}:${PORT}"
command: gunicorn digiform.wsgi:application --workers 3 --bind 0.0.0.0:${PORT}
volumes:
- .:/code
restart: always
depends_on:
db:
condition: service_healthy
db-migrations:
condition: service_completed_successfully
links:
- "db:database"
db-migrations:
build: .
command: python3 manage.py migrate
volumes:
- .:/code
depends_on:
db:
condition: service_healthy
db:
image: postgres:14.12-alpine3.20
env_file:
- .env
ports:
- "${PGPORT}:${PGPORT}"
volumes:
- digiform-data:/var/lib/postgresql/data
restart: always
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]
start_period: 0s
interval: 5s
timeout: 30s
retries: 3
volumes:
digiform-data:
name: digiform-data