Skip to content

Commit

Permalink
🐳 [#200] Update docker setup for setup configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Dec 6, 2024
1 parent 1f6fc00 commit d7c16aa
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/setup_configuration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
#set -e

src/manage.py migrate
src/manage.py setup_configuration --no-selftest
src/manage.py setup_configuration --yaml-file setup_configuration/data.yaml
9 changes: 1 addition & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ services:
- OPENNOTIFICATIES_SUPERUSER_USERNAME=admin
- OPENNOTIFICATIES_SUPERUSER_EMAIL=admin@localhost
- DJANGO_SUPERUSER_PASSWORD=admin
# setup_configuration env vars
- OPENNOTIFICATIES_DOMAIN=web:8000
- OPENNOTIFICATIES_ORGANIZATION=ON
- AUTORISATIES_API_ROOT=https://open-zaak.example.nl/autorisaties/api/v1/
- NOTIF_OPENZAAK_CLIENT_ID=notif-client-id
- NOTIF_OPENZAAK_SECRET=notif-secret
- OPENZAAK_NOTIF_CLIENT_ID=oz-client-id
- OPENZAAK_NOTIF_SECRET=oz-secret
healthcheck:
test: ["CMD", "python", "-c", "import requests; exit(requests.head('http://localhost:8000/admin/').status_code not in [200, 302])"]
interval: 30s
Expand All @@ -57,6 +49,7 @@ services:
- 8000:8000
volumes: &app-volumes
- media:/app/media # Shared media volume to get access to saved OAS files
- ./docker/setup_configuration:/app/setup_configuration
depends_on:
web-init:
condition: service_completed_successfully
Expand Down
37 changes: 37 additions & 0 deletions docker/setup_configuration/data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
zgw_consumers_config_enable: True
zgw_consumers:
services:
- identifier: autorisaties-api
label: Objecttypen API test
api_root: http://localhost:8001/autorisaties/api/v1/
api_type: ac
auth_type: zgw
client_id: open-notificaties
secret: oPMsHCEuoP9Qh8vP06D7
user_id: open-notificaties
user_representation: Open Notificaties Demodam

autorisaties_api_config_enable: True
autorisaties_api:
# Configure Open Notificaties to make use of Open Zaak's Autorisaties API
authorizations_api_service_identifier: autorisaties-api

vng_api_common_credentials_config_enable: True
vng_api_common_credentials:
items:
# Credentials for Open Zaak to be able to make requests to Open Notificaties
- identifier: open-zaak
secret: G2LIVfXal1J93puQkV3O

notifications_config_enable: True
notifications_config:
# No notifications_api_service necessary, because Open Notificaties doesn't send
# notifications to itself
notification_delivery_max_retries: 5
notification_delivery_retry_backoff: 3
notification_delivery_retry_backoff_max: 30

site_config_enable: True
site_config:
domain: opennotificaties.local:8000
organization: Demodam

0 comments on commit d7c16aa

Please sign in to comment.