-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
525 lines (498 loc) · 21.6 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
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
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
#
# SPDX-FileCopyrightText: 2024 Lifely
# SPDX-License-Identifier: EUPL-1.2+
#
services:
keycloak:
image: quay.io/keycloak/keycloak:25.0.6@sha256:82c5b7a110456dbd42b86ea572e728878549954cc8bd03cd65410d75328095d2
depends_on:
keycloak-database:
condition: service_healthy
ports:
- "8081:8080"
- "9001:9000"
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- DB_VENDOR=postgres
- DB_ADDR=keycloak-database
- DB_USER=keycloak
- DB_NAME=keycloak
- DB_PASSWORD=keycloak
- LDAP_URL=ldap://openldap:1389
- ZAC_GROUP_A_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_GROUP_A_EMAIL_ADDRESS:[email protected]}
- ZAC_GROUP_FUNCTIONEEL_BEHEERDERS_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_GROUP_FUNCTIONEEL_BEHEERDERS_EMAIL_ADDRESS:[email protected]}
- ZAC_GROUP_RECORD_MANAGERS_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_GROUP_RECORD_MANAGERS_EMAIL_ADDRESS:[email protected]}
- ZAC_GROUP_DOMEIN_TEST_1_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_GROUP_DOMEIN_TEST_1_EMAIL_ADDRESS:[email protected]}
volumes:
- ./scripts/docker-compose/imports/keycloak:/opt/keycloak/data/import
command:
- "start-dev"
- "--import-realm"
- "--features=hostname:v1"
- "--hostname-url=http://localhost:8081"
- "--http-enabled=true"
- "--health-enabled=true"
keycloak-database:
image: docker.io/postgres:17.0@sha256:8d3be35b184e70d81e54cbcbd3df3c0b47f37d06482c0dd1c140db5dbcc6a808
ports:
- "54326:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
environment:
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=keycloak
- POSTGRES_DB=keycloak
volumes:
- ./scripts/docker-compose/volume-data/zac-keycloak-database-data:/var/lib/postgresql/data
zac-database:
image: docker.io/postgres:17.0@sha256:8d3be35b184e70d81e54cbcbd3df3c0b47f37d06482c0dd1c140db5dbcc6a808
ports:
- "54320:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
environment:
POSTGRES_USER: zac
POSTGRES_PASSWORD: password
POSTGRES_DB: zac
volumes:
- ./scripts/docker-compose/imports/zac-database/init-zac-database.sql:/docker-entrypoint-initdb.d/init-zac-database.sql
- ./scripts/docker-compose/volume-data/zac-database-data:/var/lib/postgresql/data
openzaak-database:
image: docker.io/postgis/postgis:17-3.4@sha256:d0b5a6ecab18997637f55a83cb4a9467391de5645916cfa1b6f2a8d19eee7be5
ports:
- "54322:5432"
platform: linux/amd64
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
environment:
- POSTGRES_USER=openzaak
- POSTGRES_PASSWORD=openzaak
- POSTGRES_DB=openzaak
- BAG_API_CLIENT_MP_REST_URL=${BAG_API_CLIENT_MP_REST_URL:-https://api.bag.kadaster.nl/lvbag/individuelebevragingen/v2/}
- BAG_API_KEY=${BAG_API_KEY:-please-request-a-bag-api-key}
volumes:
- ./scripts/docker-compose/imports/openzaak-database:/docker-entrypoint-initdb.d
- ./scripts/docker-compose/volume-data/openzaak-database-data:/var/lib/postgresql/data
# This container name must contain a '.' or else Open Zaak will respond with a 400
# error on certain API requests caused by an internal 'invalid URL' error.
openzaak.local:
image: docker.io/openzaak/open-zaak:1.15.0@sha256:281450b155d7bd5dc3f910a329f50ae76f49b7db3762e699183921787b724650
platform: linux/amd64
environment:
- ALLOWED_HOSTS=localhost,host.docker.internal,openzaak.local
- DB_HOST=openzaak-database
- DB_NAME=openzaak
- DB_PASSWORD=openzaak
- DB_USER=openzaak
- CACHE_DEFAULT=redis:6379/0
- CACHE_AXES=redis:6379/0
- DEBUG=true
- DISABLE_2FA=true
- DJANGO_SETTINGS_MODULE=openzaak.conf.docker
- DJANGO_SUPERUSER_PASSWORD=admin
- LOG_LEVEL=DEBUG
- NOTIFICATIONS_DISABLED=true
- OPENZAAK_SUPERUSER_USERNAME=admin
- SECRET_KEY=openZaakSecretKey
- SENDFILE_BACKEND=django_sendfile.backends.simple
ports:
- "8001:8000"
volumes:
- ./scripts/docker-compose/imports/openzaak/zac-scripts:/zac-scripts
- ./scripts/docker-compose/imports/openzaak/uploads/dummy-test-document.pdf:/dummy-test-document.pdf
command: ["/zac-scripts/copy-test-pdf-and-start-openzaak.sh"]
depends_on:
openzaak-database:
condition: service_healthy
redis:
condition: service_started
redis:
image: redis:7.4.1@sha256:a06cea905344470eb49c972f3d030e22f28f632c1b4f43bbe4a26a4329dd6be5
# This container name must contain a '.' or else Open Zaak will respond with a 400
# error on certain API requests caused by an internal 'invalid URL' error.
objecten-api.local:
image: docker.io/maykinmedia/objects-api:2.3.2@sha256:79aecc482fc5c391b722b2e23bf21fd1dcadf90359c2469d18b6eeaed9ad1649
platform: linux/amd64
ports:
- "8010:8000"
environment: &objects-env
- ALLOWED_HOSTS=localhost,host.docker.internal,objecten-api.local
- CORS_ALLOW_ALL_ORIGINS=true
- DB_HOST=objecten-api-database
- DEBUG=true
- DISABLE_2FA=true
- DJANGO_SETTINGS_MODULE=objects.conf.docker
- SECRET_KEY=objectenApiSecretKey
- TWO_FACTOR_FORCE_OTP_ADMIN=False # this is not available yet in this version
- TWO_FACTOR_PATCH_ADMIN=False
healthcheck:
test: "bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/8000; exit $?;'"
interval: 10s
timeout: 10s
retries: 10
start_period: 10s
depends_on:
objecten-api-database:
condition: service_healthy
objecten-api-database:
image: docker.io/postgis/postgis:17-3.4@sha256:d0b5a6ecab18997637f55a83cb4a9467391de5645916cfa1b6f2a8d19eee7be5
ports:
- "54323:5432"
platform: linux/amd64
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
environment:
- POSTGRES_USER=objects
- POSTGRES_PASSWORD=objects
- POSTGRES_DB=objects
objecten-api-import:
image: docker.io/maykinmedia/objects-api:2.3.2@sha256:79aecc482fc5c391b722b2e23bf21fd1dcadf90359c2469d18b6eeaed9ad1649
platform: linux/amd64
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:
- ./scripts/docker-compose/imports/objects-api/fixtures:/app/src/objects/fixtures
- ./scripts/docker-compose/imports/objects-api/init:/app/init
depends_on:
objecten-api.local:
condition: service_healthy
objecttypen-api:
image: docker.io/maykinmedia/objecttypes-api:2.1.3@sha256:d6588134ac6ebb3b2ea0f881fb7a0a56bf245ca2b7e9756b9c5f701c348f9558
platform: linux/amd64
ports:
- "8011:8000"
environment: &objecttypes-env
- CORS_ALLOW_ALL_ORIGINS=true
- SECRET_KEY=objecttypenApiSecretKey
- 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:
condition: service_healthy
objecttypen-api-database:
image: docker.io/postgres:17.0@sha256:8d3be35b184e70d81e54cbcbd3df3c0b47f37d06482c0dd1c140db5dbcc6a808
ports:
- "54324:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
environment:
- POSTGRES_USER=objecttypes
- POSTGRES_PASSWORD=objecttypes
- POSTGRES_DB=objecttypes
objecttypen-api-import:
image: docker.io/maykinmedia/objecttypes-api:2.1.3@sha256:d6588134ac6ebb3b2ea0f881fb7a0a56bf245ca2b7e9756b9c5f701c348f9558
platform: linux/amd64
environment: *objecttypes-env
command: sh init/init.sh
volumes:
- ./scripts/docker-compose/imports/objecttypes-api/fixtures:/app/src/objecttypes/fixtures
- ./scripts/docker-compose/imports/objecttypes-api/init:/app/init
depends_on:
- objecttypen-api
solr:
image: docker.io/solr:9.7.0-slim@sha256:5eb3e2e6791020c6d098514594bc6bd16f2a95a7df0f855801af6f5af98169f5
platform: linux/amd64
ports:
- "8983:8983"
volumes:
- ./scripts/docker-compose/volume-data/solr-data:/var/solr
# run as root to change the permissions of the solr folder
user: root
# Change permissions of the solr folder, create the 'zac' core and start solr
command: bash -c "
chown -R 8983:8983 /var/solr
&& runuser -u solr -- solr-precreate zac"
# Open Policy Agent (OPA)
opa:
# Keep this OPA binary version in sync with the one used in the ZAC Helm chart (values.yaml file)
image: docker.io/openpolicyagent/opa:0.70.0-static@sha256:5679cbbedd1908063b7a68e8af28e662dce4ae3e069b4b5459531b141c6b6ff0
command: run --server --log-level debug
ports:
- "8181:8181"
openldap:
image: docker.io/bitnami/openldap:2.6.8@sha256:34a15789d00b5d6a576068ebb24cac5f28c4ee61bc2c166706adf66ad6fde116
ports:
- "1389:1389"
- "1636:1636"
volumes:
- ./scripts/docker-compose/imports/openldap/schemas:/schemas
- ./scripts/docker-compose/imports/openldap/zac-scripts:/zac-scripts
environment:
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=admin
- LDAP_ROOT=dc=example,dc=org
- LDAP_SKIP_DEFAULT_TREE=yes
- LDAP_CUSTOM_LDIF_DIR=/tmp
- ZAC_TESTUSER1_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_TEST_USER_1_EMAIL_ADDRESS:[email protected]}
- ZAC_TESTUSER2_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_TEST_USER_2_EMAIL_ADDRESS:[email protected]}
- ZAC_RECORD_MANAGER_1_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_RECORD_MANAGER_1_EMAIL_ADDRESS:[email protected]}
- ZAC_FUNCTIONAL_ADMIN_1_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_FUNCTIONAL_ADMIN_1_EMAIL_ADDRESS:[email protected]}
- ZAC_TESTUSER_DOMEIN_TEST_1_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_TESTUSER_DOMEIN_TEST_1_EMAIL_ADDRESS:[email protected]}
- ZAC_GROUP_A_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_GROUP_A_EMAIL_ADDRESS:[email protected]}
- ZAC_GROUP_FUNCTIONEEL_BEHEERDERS_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_GROUP_FUNCTIONEEL_BEHEERDERS_EMAIL_ADDRESS:[email protected]}
- ZAC_GROUP_RECORD_MANAGERS_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_GROUP_RECORD_MANAGERS_EMAIL_ADDRESS:[email protected]}
- ZAC_GROUP_DOMEIN_TEST_1_EMAIL_ADDRESS=${DOCKER_COMPOSE_LDAP_GROUP_DOMEIN_TEST_1_EMAIL_ADDRESS:[email protected]}
entrypoint: ["/zac-scripts/generate-zac-import-ldif-and-start-openldap.sh"]
command: ["/opt/bitnami/scripts/openldap/run.sh"]
brp-personen-mock:
image: ghcr.io/brp-api/personen-mock:2.3.0-202409180940@sha256:eacbf6bb9d7ccd74c283506072c0d11e5695b04c0d5ed587f61fd3a4db689220
environment:
- ASPNETCORE_ENVIRONMENT=Release
- ASPNETCORE_URLS=http://+:5010
ports:
- "5010:5010"
openklant-database:
image: docker.io/postgres:17.0@sha256:8d3be35b184e70d81e54cbcbd3df3c0b47f37d06482c0dd1c140db5dbcc6a808
ports:
- "54325:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
environment:
- POSTGRES_USER=openklant
- POSTGRES_PASSWORD=openklant
- POSTGRES_DB=openklant
volumes:
- ./scripts/docker-compose/imports/openklant-database:/docker-entrypoint-initdb.d
- ./scripts/docker-compose/volume-data/openklant-database-data:/var/lib/postgresql/data
openklant.local:
image: docker.io/maykinmedia/open-klant:2.3.0@sha256:deeccf6c1e0c76538169443ffe960895da98188540fec69e127d9e78fdce23da
platform: linux/amd64
environment:
- ALLOWED_HOSTS=localhost,host.docker.internal,openklant.local
- DB_HOST=openklant-database
- DB_USER=openklant
- DB_PASSWORD=openklant
- DB_NAME=openklant
- CACHE_DEFAULT=redis:6379/0
- CACHE_AXES=redis:6379/0
- DJANGO_SETTINGS_MODULE=openklant.conf.docker
- EMAIL_HOST=localhost
- IS_HTTPS=no
- NOTIFICATIONS_DISABLED=True
- SECRET_KEY=openZaakSecretKey
- DISABLE_2FA=true
ports:
- "8002:8000"
depends_on:
openklant-database:
condition: service_healthy
redis:
condition: service_started
smartdocuments-wiremock:
image: docker.io/wiremock/wiremock:3.9.2@sha256:d13997cd7b52583528a766019cfe7d4e91c4d224a67bdaa6f60efbb532f32176
volumes:
# these WireMock mappings are used by the ZAC integration tests
- ./scripts/docker-compose/imports/smartdocuments-wiremock/mappings:/home/wiremock/mappings
- ./scripts/docker-compose/imports/smartdocuments-wiremock/__files:/home/wiremock/__files
entrypoint: [ "/docker-entrypoint.sh", "--global-response-templating", "--disable-gzip", "--verbose" ]
ports:
- "18080:8080"
profiles: [ "itest" ]
kvk-wiremock:
image: docker.io/wiremock/wiremock:3.9.2@sha256:d13997cd7b52583528a766019cfe7d4e91c4d224a67bdaa6f60efbb532f32176
volumes:
# these WireMock mappings are used by the ZAC integration tests
- ./scripts/docker-compose/imports/kvk-wiremock/mappings:/home/wiremock/mappings
- ./scripts/docker-compose/imports/kvk-wiremock/__files:/home/wiremock/__files
entrypoint: [ "/docker-entrypoint.sh", "--global-response-templating", "--disable-gzip", "--verbose" ]
ports:
- "18081:8080"
profiles: [ "itest" ]
opa-tests:
# Keep this OPA binary version in sync with the one used in the ZAC Helm chart (values.yaml file)
image: docker.io/openpolicyagent/opa:0.70.0@sha256:2b1c4b231f6dfa6a2baea4af4109203b10cd4b65e836d72f03bfe5d8dfce7095
volumes:
- ./src/test/resources/policies:/home/tests
- ./src/main/resources/policies:/home/policies
entrypoint: [ "opa", "test", "/home/policies", "/home/tests" ]
profiles: [ "itest" ]
office-converter:
image: ghcr.io/eugenmayer/kontextwork-converter:1.6.1@sha256:92ec2ee4390a7663bc9f5476d6d400bcbbbbc55630bf531d062919b6579295c5
platform: linux/amd64
ports:
- "8083:8080"
# Open Telemetry Collector which can receive OTLP observability data sent by ZAC
otel-collector:
image: docker.io/otel/opentelemetry-collector:0.112.0@sha256:fae9574bf0ec85703fcdfb198442b03141687924c9aea47e12fe307b659190a2
command: [ --config=/etc/otel-collector.yaml ]
volumes:
- ./scripts/docker-compose/imports/otel-collector/otel-collector.yaml:/etc/otel-collector.yaml:Z
ports:
- "1888:1888" # pprof extension
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
- "55679:55679" # zpages extension
profiles: [ "metrics" ]
# Observability traces data store
tempo:
image: docker.io/grafana/tempo:2.6.1@sha256:ef4384fce6e8ad22b95b243d8fc165628cda655376fd50e7850536ad89d71d50
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./scripts/docker-compose/imports/tempo/tempo.yaml:/etc/tempo.yaml
ports:
- "14268" # jaeger ingest
- "3200" # tempo
- "4317" # otlp grpc
- "4318" # otlp http
- "9411" # zipkin
profiles: [ "metrics" ]
# Observability metrics data store
prometheus:
image: docker.io/prom/prometheus:v2.55.0@sha256:378f4e03703557d1c6419e6caccf922f96e6d88a530f7431d66a4c4f4b1000fe
command:
- --config.file=/etc/prometheus.yaml
- --web.enable-remote-write-receiver
- --enable-feature=exemplar-storage
volumes:
- ./scripts/docker-compose/imports/prometheus/prometheus.yaml:/etc/prometheus.yaml
ports:
- "9090:9090"
profiles: [ "metrics" ]
# Visualizes metrics and traces data
grafana:
image: docker.io/grafana/grafana:11.3.0@sha256:a0f881232a6fb71a0554a47d0fe2203b6888fe77f4cefb7ea62bed7eb54e13c3
volumes:
- ./scripts/docker-compose/imports/grafana/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- ./scripts/docker-compose/volume-data/grafana-data:/var/lib/grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
ports:
- "3000:3000"
healthcheck:
test: "bash -c 'printf \"GET /api/health HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/3000; exit $?;'"
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
depends_on:
- tempo
- prometheus
profiles: [ "metrics" ]
greenmail:
image: docker.io/greenmail/standalone:2.1.0@sha256:308685b99ad840f05bd2dee43f47f7956f876adbf396523f68166f078300cd29
environment:
GREENMAIL_OPTS: >-
-Dgreenmail.smtp.hostname=0.0.0.0
-Dgreenmail.smtp.port=25
-Dgreenmail.hostname=0.0.0.0
-Dgreenmail.auth.disabled
-Dgreenmail.verbose
ports:
- "25:25"
- "143:143"
- "18083:8080"
profiles: [ "itest" ]
zac:
# By default, we use the most recent ZAC Docker Image. Change this if you wish to use a specific version.
image: ${ZAC_DOCKER_IMAGE:-ghcr.io/infonl/zaakafhandelcomponent:latest}
environment:
- AUTH_REALM=zaakafhandelcomponent
- AUTH_RESOURCE=zaakafhandelcomponent
- AUTH_SECRET=keycloakZaakafhandelcomponentClientSecret
- AUTH_SERVER=http://keycloak:8080
- BAG_API_CLIENT_MP_REST_URL=https://api.bag.kadaster.nl/lvbag/individuelebevragingen/v2/
- BAG_API_KEY=${BAG_API_KEY:-dummyBagApiKey}
- BRP_API_CLIENT_MP_REST_URL=http://brp-personen-mock:5010/haalcentraal/api/brp
- BRP_API_KEY=dummyKey # not used when using the BRP proxy
- CONTEXT_URL=http://localhost:8080
- DB_HOST=zac-database
- DB_NAME=zac
- DB_PASSWORD=password
- DB_USER=zac
- FEATURE_FLAG_BPMN_SUPPORT=${FEATURE_FLAG_BPMN_SUPPORT:-false}
- GEMEENTE_CODE=${GEMEENTE_CODE:-9999}
- GEMEENTE_MAIL=${GEMEENTE_MAIL:[email protected]}
- GEMEENTE_NAAM=${GEMEENTE_NAAM:-DummyZacGemeente}
- KLANTINTERACTIES_API_CLIENT_MP_REST_URL=http://openklant.local:8000
- KLANTINTERACTIES_API_TOKEN=dummyToken
- KVK_API_CLIENT_MP_REST_URL=${KVK_API_CLIENT_MP_REST_URL:-dummyKvkApiUrl}
- KVK_API_KEY=${KVK_API_KEY:-dummyKvkApiKey}
- LDAP_DN="ou=people,dc=example,dc=org"
- LDAP_PASSWORD=admin
- LDAP_URL=ldap://openldap:1389
- LDAP_USER=cn=admin,dc=example,dc=org
- MAILJET_API_KEY=${MAILJET_API_KEY:-dummyMailjetApiKey}
- MAILJET_API_SECRET_KEY=${MAILJET_API_SECRET_KEY:-dummyMailjetApiSecretKey}
- OFFICE_CONVERTER_CLIENT_MP_REST_URL=http://office-converter:8080
- OBJECTS_API_CLIENT_MP_REST_URL=http://objecten-api.local:8000
- OBJECTS_API_TOKEN=dummyZacObjectsToken
- OBJECTTYPES_API_CLIENT_MP_REST_URL=http://objecttypen-api:8000
- OBJECTTYPES_API_TOKEN=dummyZacObjectTypesToken
- OPA_API_CLIENT_MP_REST_URL=http://opa:8181
- OPEN_FORMS_URL=http://localhost:9999 # dummy for now
- OPEN_NOTIFICATIONS_API_SECRET_KEY=openNotificatiesApiSecretKey
- SD_AUTHENTICATION=${SD_AUTHENTICATION:-dummySmartDocumentsAuthentication}
- SD_CLIENT_MP_REST_URL=${SD_CLIENT_MP_REST_URL:-http://smartdocuments-wiremock:8080}
- SD_FIXED_USER_NAME=${SD_FIXED_USER_NAME:-}
- SIGNALERINGEN_DELETE_OLDER_THAN_DAYS=${SIGNALERINGEN_DELETE_OLDER_THAN_DAYS:-14}
- SOLR_URL=http://solr:8983
# Turn off the Open Telemetry sampler by default because it is not always needed
# Typically when using the Docker Compose profile 'metrics' you want to turn this on
- SUBSYSTEM_OPENTELEMETRY__SAMPLER_TYPE=${SUBSYSTEM_OPENTELEMETRY__SAMPLER_TYPE:-off}
- SUBSYSTEM_OPENTELEMETRY__ENDPOINT=http://otel-collector:4317
- ZGW_API_CLIENT_MP_REST_URL=http://openzaak.local:8000/
- ZGW_API_CLIENTID=zac_client
- ZGW_API_SECRET=openzaakZaakafhandelcomponentClientSecret
- ZGW_API_URL_EXTERN=http://localhost:8001/
- SMTP_SERVER=${SMTP_SERVER:-in-v3.mailjet.com}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USERNAME=${SMTP_USERNAME:-dummyMailjetApiKey}
- SMTP_PASSWORD=${SMTP_PASSWORD:-dummyMailjetApiSecretKey}
ports:
- "8080:8080"
- "9990:9990"
volumes:
# mount volumes for (optional) JaCoCo test coverage for our integration tests
# see: https://blog.akquinet.de/2018/09/06/test-coverage-for-containerized-java-apps/
- ./build/jacoco/itest/jacoco-agent:/jacoco-agent
- ./build/jacoco/itest/jacoco-report:/jacoco-report
entrypoint: [
"sh",
"-c",
# entrypoint may be overridden by environment variable to pass on extra arguments
"${ZAC_DOCKER_ENTRYPOINT:-java -Xms1024m -Xmx1024m -Xlog:gc::time,uptime -jar zaakafhandelcomponent.jar}",
]
deploy:
resources:
limits:
# Set a maximum memory limit for the ZAC container for a more realistic
# scenario when testing ZAC locally or when running our integration tests.
memory: 4G
depends_on:
zac-database:
condition: service_healthy
profiles: ["zac"]