-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-default.yaml
215 lines (202 loc) · 5.34 KB
/
docker-compose-default.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
version: "3.3"
networks:
emnutt:
services:
emnutt:
image: intrahealth/emnutt:1.0
ports:
- "3002:3002"
restart: unless-stopped
networks:
emnutt:
environment:
NODE_ENV: docker
APP_PORT: 3002
APP_BASE_URL: http://localhost:3002/emNutt
APP_INSTALLED: "false"
MACM_BASE_URL:
MACM_USERNAME:
MACM_PASSWORD:
RAPIDPRO_BASE_URL:
RAPIDPRO_TOKEN:
RAPIDPRO_SYNC_ALL_CONTACTS: ""
ELASTIC_BASE_URL: http://elasticsearch:9200
ELASTIC_USERNAME:
ELASTIC_PASSWORD:
KIBANA_BASE_URL:
KIBANA_USERNAME:
KIBANA_PASSWORD:
MEDIATOR_API_URL:
MEDIATOR_API_USERNAME: [email protected]
MEDIATOR_API_PASSWORD: openhim-password
MEDIATOR_API_TRUST_SELF_SIGNED: "true"
MEDIATOR_ROUTER_URL:
MEDIATOR_REGISTER: "true"
fhir:
container_name: hapi-fhir
image: hapiproject/hapi:latest
networks:
emnutt:
ports:
- '8080:8080'
mongo-db:
container_name: mongo-db
image: mongo:latest
networks:
- emnutt
restart: unless-stopped
environment:
NODE_ENV: 'docker'
openhim-core:
container_name: openhim-core
image: jembi/openhim-core:latest
restart: unless-stopped
environment:
mongo_url: 'mongodb://mongo-db/openhim-development'
mongo_atnaUrl: 'mongodb://mongo-db/openhim-development'
NODE_ENV: 'development'
ports:
- '5000:5000'
- '5001:5001'
- '8081:8080'
networks:
- emnutt
healthcheck:
test: 'curl -sSk https://openhim-core:8080/heartbeat || exit 1'
interval: 30s
timeout: 30s
retries: 3
openhim-console:
container_name: openhim-console
image: jembi/openhim-console:latest
restart: unless-stopped
networks:
- emnutt
ports:
- '9000:80'
healthcheck:
test: 'curl -sS http://openhim-console || exit 1'
interval: 30s
timeout: 30s
retries: 3
rapidpro:
image: rapidpro/rapidpro:v4
depends_on:
- redis
- postgresql
ports:
- '8000:8000'
environment:
MAILROOM_URL: "http://mailroom:8090"
DOMAIN_NAME: "localhost"
DJANGO_DEBUG: "off"
DATABASE_URL: postgresql://postgres:postgres@postgresql/rapidpro
REDIS_URL: redis://redis:6379/0
SECRET_KEY: super-secret-key
MANAGEPY_COLLECTSTATIC: "on"
MANAGEPY_COMPRESS: "on"
MANAGEPY_INIT_DB: "on"
MANAGEPY_MIGRATE: "on"
SEND_MESSAGES: "on"
SEND_WEBHOOKS: "on"
SEND_EMAILS: "on"
SEND_AIRTIME: "on"
SEND_CALLS: "on"
IS_PROD: "on"
celery_base:
image: rapidpro/rapidpro:v4
depends_on:
- rapidpro
links:
- redis
- postgresql
environment:
DATABASE_URL: postgresql://postgres:postgres@postgresql/rapidpro
REDIS_URL: redis://redis:6379/0
SECRET_KEY: super-secret-key
command:
[
'/venv/bin/celery',
'--beat',
'--app=temba',
'worker',
'--loglevel=INFO',
'--queues=celery,flows',
]
celery_msgs:
image: rapidpro/rapidpro:v4
depends_on:
- rapidpro
links:
- redis
- postgresql
environment:
DATABASE_URL: postgresql://postgres:postgres@postgresql/rapidpro
REDIS_URL: redis://redis:6379/0
SECRET_KEY: super-secret-key
command:
[
'/venv/bin/celery',
'--app=temba',
'worker',
'--loglevel=INFO',
'--queues=msgs,handler',
]
redis:
image: redis:alpine
postgresql:
image: mdillon/postgis:9.6
environment:
- POSTGRES_DB=rapidpro
courier:
image: praekeltfoundation/courier
depends_on:
- rapidpro
links:
- redis
- postgresql
environment:
COURIER_DOMAIN: "localhost"
COURIER_SPOOL_DIR: /tmp/courier/
COURIER_DB: postgres://postgres:postgres@postgresql/rapidpro
COURIER_REDIS: redis://redis:6379/8
mailroom:
image: praekeltfoundation/mailroom
depends_on:
- rapidpro
links:
- redis
- postgresql
environment:
MAILROOM_ADDRESS: 'localhost'
MAILROOM_DOMAIN: 'localhost'
MAILROOM_DB: postgres://postgres:postgres@postgresql/rapidpro?sslmode=disable
MAILROOM_REDIS: redis://redis:6379/15
MAILROOM_ELASTIC: http://elasticsearch:9200
ports:
- '8090:8090'
elasticsearch:
container_name: elasticsearch
image: elasticsearch:7.6.2
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- discovery.seed_hosts=elasticsearch
- cluster.initial_master_nodes=elasticsearch
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
ulimits:
memlock:
soft: -1
hard: -1
networks:
emnutt:
ports:
- '9200:9200'
kibana:
container_name: kibana
image: kibana:7.6.2
networks:
emnutt:
ports:
- '5601:5601'