From 9aa4ad1ba47ff420b61dafabf2e5eeba3fa80dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 27 Nov 2026 16:21:29 +0100 Subject: [PATCH] Add configurable supplementary volumes for app service in Chill role Added `supplementary_app_volumes` list parameter (default empty) to `default_chill` and implemented dynamic volume mounting in `compose.yaml` template for the `app` service. --- defaults/main.yml | 1 + templates/compose.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index dc497e3..9adfe05 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -27,6 +27,7 @@ default_chill: rabbitmq_install: true # mount the directory 'templates' (twig overrides) into the app containers. false = do not mount load_template_override: false + supplementary_app_volumes: [] proxy_ips: # 127.0.0.1 is always added - 192.168.0.0/16 diff --git a/templates/compose.yaml b/templates/compose.yaml index 3a3111d..016271a 100644 --- a/templates/compose.yaml +++ b/templates/compose.yaml @@ -51,6 +51,9 @@ services: - './templates:/var/www/app/templates:ro' {% endif %} - '{{ doc_storage_dir }}/{{ chill['chill_environment'] }}:/var/storage:rw' +{% for volume in chill.supplementary_app_volumes %} + - '{{ volume }}' +{% endfor %} links: - redis - relatorio