forked from kartoza/watchkeeper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
101 lines (88 loc) · 1.99 KB
/
docker-compose.prod.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '3.3'
services:
web:
image: healthsites/hcid
command: ./utils/wait-for.sh db:5432 -- uwsgi --http-socket :8001 --workers 1 --static-map /static=./static/ --offload-threads --master --module core.wsgi:application
environment:
- DJANGO_SETTINGS_MODULE=core.settings.prod
- SECRET_FILE=hcid-secret.py
secrets:
- hcid-secret.py
depends_on:
- db
- rabbitmq
networks:
- hcid-infra
volumes:
- ./media:/data/media
- ./cache:/data/cache
deploy:
replicas: 2
worker:
image: healthsites/hcid
command: ./utils/wait-for.sh db:5432 -- celery worker -A event_mapper.celery -l info -c 1
environment:
- DJANGO_SETTINGS_MODULE=core.settings.prod
- SECRET_FILE=hcid-secret.py
secrets:
- hcid-secret.py
depends_on:
- db
- rabbitmq
networks:
- hcid-infra
volumes:
- ./media:/data/media
- ./cache:/data/cache
deploy:
replicas: 1
scheduler:
image: healthsites/hcid
command: celery beat -A event_mapper.celery -l info
environment:
- DJANGO_SETTINGS_MODULE=core.settings.prod
- SECRET_FILE=hcid-secret.py
secrets:
- hcid-secret.py
depends_on:
- db
- rabbitmq
networks:
- hcid-infra
deploy:
replicas: 1
smtp:
image: catatnight/postfix
environment:
- maildomain=healthsites.io
- smtp_user=noreply:docker
networks:
- hcid-infra
deploy:
replicas: 1
rabbitmq:
image: rabbitmq
environment:
- RABBITMQ_NODENAME=rabbitmq
networks:
- hcid-infra
deploy:
replicas: 1
db:
image: mdillon/postgis:9.4-alpine
environment:
- POSTGRES_USER=docker
- POSTGERS_PASSWORD=docker
- POSTGRES_DB=base_db
networks:
- hcid-infra
volumes:
- ./pg_data:/var/lib/postgresql/data
deploy:
replicas: 1
secrets:
hcid-secret.py:
external: true
networks:
hcid-infra:
external: true