-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
72 lines (53 loc) · 1.21 KB
/
docker-compose.yaml
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
69
70
71
72
services:
webserver:
image: nginx
build:
context: .
dockerfile: infrastructure/docker/Dockerfile.webserver
depends_on:
- conferences
- push_notifications
ports:
- 8001:80
conferences:
build:
context: .
dockerfile: infrastructure/docker/Dockerfile
env_file:
- .env
- .env.docker
volumes:
- opencon-logs:/var/log/opencon
# - ./src/scripts/update-conf.py:/scripts/update-conf.py
healthcheck:
test: curl --fail http://localhost:8000/openapi.json || exit 1
interval: 5s
retries: 3
start_period: 5s
timeout: 5s
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
redis:
condition: service_started
push_notifications:
build:
context: .
dockerfile: infrastructure/docker/Dockerfile
command: python workers/push_notifications.py
env_file:
- .env
volumes:
- ./src/workers:/workers
- opencon-logs:/var/log/opencon
depends_on:
redis:
condition: service_started
redis:
command: redis-server
hostname: redis
image: redis:alpine
labels:
NAME: redis
volumes:
opencon-logs: