-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
422 lines (392 loc) · 11.8 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
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
version: "3.9"
services:
xential-plugin-core-db:
container_name: xential-plugin-core-db
image: postgres:14.1
ports:
- "54340:5432"
environment:
POSTGRES_USER: example
POSTGRES_PASSWORD: password
POSTGRES_DB: example-core-db
xential-plugin-core-keycloak:
container_name: xential-plugin-core-keycloak
depends_on:
- xential-plugin-core-keycloak-db
image: quay.io/keycloak/keycloak:17.0.1-legacy
volumes:
- ./docker/imports/keycloak:/opt/jboss/keycloak/imports
ports:
- "8081:8080"
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
DB_VENDOR: postgres
DB_ADDR: xential-plugin-core-keycloak-db
DB_USER: keycloak
DB_PASSWORD: keycloak
command:
- "-Dkeycloak.migration.action=import"
- "-Dkeycloak.migration.provider=singleFile"
- "-Dkeycloak.migration.file=/opt/jboss/keycloak/imports/realm.json"
- "-Dkeycloak.migration.strategy=IGNORE_EXISTING"
xential-plugin-core-keycloak-db:
image: postgres:14.1
container_name: xential-plugin-core-keycloak-db
ports:
- "54329:5432"
environment:
- POSTGRES_USER=${DB_USER:-keycloak}
- POSTGRES_PASSWORD=${DB_PASSWORD:-keycloak}
gzac-rabbitmq:
image: rabbitmq:3-management
container_name: gzac-rabbitmq-xential
volumes:
- ./imports/gzac-rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
- ./imports/gzac-rabbitmq/definitions.json:/etc/rabbitmq/definitions.json:ro
ports:
- "5672:5672"
- "15672:15672"
# ZGW
openzaak:
image: openzaak/open-zaak:1.13.0
container_name: openzaak
platform: linux/amd64
profiles:
- zgw
- openzaak
environment:
- DB_HOST=openzaak-database
- DB_POST=5433
- SECRET_KEY=veryRestrictedSecretKey
- DB_USER=openzaak
- DB_PASSWORD=openzaak
- DB_NAME=openzaak
- CACHE_DEFAULT=openzaak-redis:6379/0
- CACHE_AXES=openzaak-redis:6379/0
- DEBUG=true
- ALLOWED_HOSTS=localhost,host.docker.internal,172.17.0.1,openzaak
- OPENZAAK_SUPERUSER_USERNAME=admin
- DJANGO_SUPERUSER_PASSWORD=admin
- SENDFILE_BACKEND=django_sendfile.backends.simple
- NOTIFICATIONS_DISABLED=true
ports:
- "8001:8000"
depends_on:
- openzaak-database
- openzaak-redis
openzaak-database:
image: postgis/postgis:13-3.1
container_name: openzaak-database
platform: linux/amd64
profiles:
- zgw
- openzaak
environment:
- POSTGRES_USER=openzaak
- POSTGRES_PASSWORD=openzaak
- POSTGRES_DB=openzaak
ports:
- "5433:5432"
volumes:
- ./imports/open-zaak:/docker-entrypoint-initdb.d
openzaak-redis:
image: redis:6.2.6
container_name: openzaak-redis
profiles:
- zgw
- openzaak
objecten-api:
image: maykinmedia/objects-api:2.1.1
container_name: objecten-api
platform: linux/amd64
profiles:
- zgw
- objecten
ports:
- "8010:8000"
environment: &objects-env
- CORS_ALLOW_ALL_ORIGINS=true
- SECRET_KEY=${SECRET_KEY:-1(@f(-6s_u(5fd&1sg^uvu2s(c-9sapw)1era8q&)g)h@cwxxg}
- DJANGO_SETTINGS_MODULE=objects.conf.docker
- DB_HOST=objecten-api-database
- DEBUG=true
- TWO_FACTOR_FORCE_OTP_ADMIN=False # this is not available yet in this version
- TWO_FACTOR_PATCH_ADMIN=False
depends_on:
- objecten-api-database
objecten-api-database:
image: postgis/postgis:13-3.1
container_name: objecten-api-database
platform: linux/amd64
profiles:
- zgw
- objecten
ports:
- "54321:5432"
environment:
- POSTGRES_USER=objects
- POSTGRES_PASSWORD=objects
- POSTGRES_DB=objects
objecten-api-import:
image: maykinmedia/objects-api:2.1.1
container_name: objects-api-import
platform: linux/amd64
profiles:
- zgw
- objecten
environment: *objects-env
# in the current version of django it is not possible to create a new user with password without user interaction by using the createsuperuser command
command: sh init/init.sh
volumes:
- ./imports/objects-api/fixtures:/app/src/objects/fixtures
- ./imports/objects-api/init:/app/init
depends_on:
- objecten-api
objecttypen-api:
image: maykinmedia/objecttypes-api:2.1.0
container_name: objecttypen-api
platform: linux/amd64
profiles:
- zgw
- objecten
ports:
- "8011:8000"
environment: &objecttypes-env
- CORS_ALLOW_ALL_ORIGINS=true
- SECRET_KEY=${SECRET_KEY:-fgv=c0hz&tl*8*3m3893@m+1pstrvidc9e^5@fpspmg%cy$$15d}
- DJANGO_SETTINGS_MODULE=objecttypes.conf.docker
- DB_HOST=objecttypen-api-database
- DEBUG=true
- TWO_FACTOR_FORCE_OTP_ADMIN=False # this is not available yet in this version
- TWO_FACTOR_PATCH_ADMIN=False
depends_on:
- objecttypen-api-database
objecttypen-api-database:
image: postgres:14.1
container_name: objecttypen-api-database
profiles:
- zgw
- objecten
ports:
- "54324:5432"
environment:
- POSTGRES_USER=objecttypes
- POSTGRES_PASSWORD=objecttypes
- POSTGRES_DB=objecttypes
objecttypen-api-import:
image: maykinmedia/objecttypes-api:2.1.0
container_name: objecttypen-api-import
platform: linux/amd64
profiles:
- zgw
- objecten
environment: *objecttypes-env
command: sh init/init.sh
volumes:
- ./imports/objecttypes-api/fixtures:/app/src/objecttypes/fixtures
- ./imports/objecttypes-api/init:/app/init
depends_on:
- objecttypen-api
open-notificaties-rabbitmq:
image: rabbitmq:3.9-management
container_name: open-notificaties-rabbitmq
profiles:
- zgw
ports:
- "5673:5672"
- "15673:15672"
open-notificaties-celery:
image: openzaak/open-notificaties:1.4.3
container_name: open-notificaties
platform: linux/amd64
profiles:
- zgw
environment: ¬ificaties-env
- DJANGO_SETTINGS_MODULE=nrc.conf.docker
- SECRET_KEY=${SECRET_KEY:-4wHY2Cp5`4(q%)]cuWxPQJRp5kN?g+`.Xah>%6Fsq6+)R>p_}
- ALLOWED_HOSTS=*
- CACHE_DEFAULT=open-notificaties-redis:6379/0
- CACHE_AXES=open-notificaties-redis:6379/1
- DB_PORT=5432
- DB_HOST=open-notificaties-database
- DB_NAME=notifications
- DB_USER=notifications
- DB_PASSWORD=notifications
- DEBUG=true
- RABBITMQ_HOST=open-notificaties-rabbitmq
- PUBLISH_BROKER_URL=redis://open-notificaties-redis:6379/0
- CELERY_BROKER_URL=redis://open-notificaties-redis:6379/0
- CELERY_RESULT_BACKEND=redis://open-notificaties-redis:6379/0
- CELERY_LOGLEVEL=DEBUG
- CELERY_WORKER_CONCURRENCY=${CELERY_WORKER_CONCURRENCY:-4}
- SUBPATH=${SUBPATH:-/}
command: /celery_worker.sh
depends_on:
- open-notificaties-database
- open-notificaties-rabbitmq
- open-notificaties-redis
open-notificaties:
image: openzaak/open-notificaties:1.4.3
container_name: open-notificaties-celery
platform: linux/amd64
profiles:
- zgw
ports:
- "8002:8000"
environment: *notificaties-env
depends_on:
- open-notificaties-database
- open-notificaties-rabbitmq
- open-notificaties-redis
open-notificaties-database:
image: postgres:13.5 # open-notificaties doesn't work with postgres 14.
container_name: open-notificaties-database
profiles:
- zgw
ports:
- "54319:5432"
environment:
- POSTGRES_USER=${DB_USER:-notifications}
- POSTGRES_PASSWORD=${DB_PASSWORD:-notifications}
- POSTGRES_DB=notifications
volumes:
- ./imports/open-notificaties:/docker-entrypoint-initdb.d
open-notificaties-redis:
image: redis:6.2.6
container_name: open-notificaties-redis
profiles:
- zgw
open-forms-database:
image: postgres:14.1
container_name: open-forms-database
profiles:
- openformulieren
ports:
- "54322:5432"
environment:
- POSTGRES_USER=${DB_USER:-openforms}
- POSTGRES_PASSWORD=${DB_PASSWORD:-openforms}
volumes:
- ./imports/open-formulieren:/docker-entrypoint-initdb.d
open-forms-redis:
image: redis:6.2.6
container_name: open-forms-redis
profiles:
- openformulieren
open-forms-web:
image: openformulieren/open-forms:2.0.3
container_name: open-forms-web
platform: linux/amd64
profiles:
- openformulieren
environment: &web_env
- CORS_ALLOW_ALL_ORIGINS=true
- DJANGO_SETTINGS_MODULE=openforms.conf.docker
- SECRET_KEY=${SECRET_KEY:-@r0w-0(&apjfde5fl6h23!vn)r1ldkp1c_d2#!$$did4z5hun4a}
- DB_NAME=openforms
- DB_USER=openforms
- DB_PASSWORD=openforms
- DB_HOST=open-forms-database
- CACHE_DEFAULT=open-forms-redis:6379/0
- CACHE_AXES=open-forms-redis:6379/0
- ALLOWED_HOSTS=*
- CELERY_BROKER_URL=redis://open-forms-redis:6379/0
- CELERY_RESULT_BACKEND=redis://open-forms-redis:6379/0
- CELERY_LOGLEVEL=DEBUG
- OPENFORMS_LOCATION_CLIENT=${OPENFORMS_LOCATION_CLIENT:-openforms.contrib.bag.client.BAGClient}
# Needed for Celery Flower to match the TIME_ZONE configured in the
# settings used by workers and beat containers.
- TZ=Europe/Amsterdam
- TWO_FACTOR_FORCE_OTP_ADMIN=False
- TWO_FACTOR_PATCH_ADMIN=False
volumes:
- ./imports/open-formulieren/private_media:/app/private_media
ports:
- "8003:8000"
depends_on:
- open-forms-database
open-forms-celery:
image: openformulieren/open-forms:2.0.3
container_name: open-forms-celery
platform: linux/amd64
profiles:
- openformulieren
environment: *web_env
command: /celery_worker.sh
volumes:
- ./imports/open-formulieren/private_media:/app/private_media
depends_on:
- open-forms-database
- open-forms-redis
open-forms-celery-beat:
image: openformulieren/open-forms:2.0.3
container_name: open-forms-celery-beat
platform: linux/amd64
profiles:
- openformulieren
environment: *web_env
command: /celery_beat.sh
depends_on:
- open-forms-database
- open-forms-redis
open-forms-celery-flower:
image: mher/flower:0.9.7
container_name: open-forms-celery-flower
platform: linux/amd64
profiles:
- openformulieren
environment: *web_env
ports:
- "5555:5555"
depends_on:
- open-forms-redis
- open-forms-celery
open-forms-busybox:
image: busybox:1.34.1
container_name: open-forms-busybox
profiles:
- openformulieren
command: /bin/chown -R 1000 /private_media
volumes:
- ./imports/open-formulieren/private_media:/private_media
open-klant:
image: maykinmedia/open-klant:latest
container_name: open-klant
platform: linux/amd64
profiles:
- openklantv1
environment:
- DJANGO_SETTINGS_MODULE=openklant.conf.docker
- SECRET_KEY=${SECRET_KEY:-django-insecure-$$8s@b*ds4t84-q_2#c0j0506@!l2q6r5_pq5e!vm^_9c*#^66b}
- DB_NAME=openklant
- DB_USER=openklant
- DB_PASSWORD=openklant
- DB_HOST=open-klant-database
- CACHE_DEFAULT=open-klant-redis:6379/0
- CACHE_AXES=open-klant-redis:6379/0
- ALLOWED_HOSTS=*
ports:
- "8006:8000"
depends_on:
- open-klant-database
open-klant-database:
image: postgres:14.1
container_name: open-klant-database
profiles:
- openklantv1
ports:
- "54323:5432"
environment:
- POSTGRES_USER=${DB_USER:-openklant}
- POSTGRES_PASSWORD=${DB_PASSWORD:-openklant}
volumes:
- ./imports/open-klanten:/docker-entrypoint-initdb.d
open-klant-redis:
image: redis:6.2.6
container_name: open-klant-redis
profiles:
- openklantv1
volumes:
gzac-xential-data: