-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
66 lines (61 loc) · 1.4 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
services:
conferences:
build:
context: .
dockerfile: infrastructure/docker/Dockerfile
command: uvicorn main:app --host 0.0.0.0 --reload # sleep 9999999999
env_file:
- .env
volumes:
- opencon-logs:/var/log/opencon
ports:
- 8000:8000
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
postgres:
condition: service_started
push_notifications:
build:
context: .
dockerfile: infrastructure/docker/Dockerfile
command: python workers/push_notifications.py
env_file:
- .env
volumes:
- opencon-logs:/var/log/opencon
depends_on:
redis:
condition: service_started
postgres:
condition: service_started
conferences:
condition: service_healthy
postgres:
image: "postgres:14-alpine"
environment:
POSTGRES_DB: sfscon
POSTGRES_USER: sfscon
POSTGRES_PASSWORD: sfscon
hostname: postgres
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
command: redis-server
hostname: redis
image: redis:alpine
labels:
NAME: redis
ports:
- 6379:6379
volumes:
opencon-logs:
postgres-data: