-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
68 lines (68 loc) · 1.4 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
62
63
64
65
66
67
68
version: "3.8"
services:
db:
container_name: db
image: postgres:15
volumes:
- diagraph-db-data:/var/lib/postgresql/data
env_file:
- "./config.env"
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U adviser"]
interval: 5s
timeout: 5s
retries: 10
router:
build: ./router
volumes:
- ./router:/node
tty: true
ports:
- "8083:8083"
healthcheck:
test: ping -c 1 router > /dev/null 2>&1; echo $?
interval: 5s
timeout: 5s
retries: 10
diagraph:
build:
context: .
dockerfile: ./adviser/Dockerfile
command: python3 /django_code/run_dialogsystem.py tree --debug --noconsole
volumes:
- ./adviser:/django_code
depends_on:
db:
condition: service_healthy
router:
condition: service_healthy
tty: true
env_file:
- "./config.env"
django:
build:
context: .
dockerfile: ./Dockerfile
volumes:
- ./adviser:/django_code/adviser
- /apps
- /django_static
tty: true
depends_on:
db:
condition: service_healthy
router:
condition: service_healthy
ports:
- "8000:8000"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 2s
retries: 15
env_file:
- "./config.env"
volumes:
diagraph-db-data: