diff --git a/defaults/main.yml b/defaults/main.yml index 4db82a8..7f605bf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -70,6 +70,7 @@ hydra_dispatcher_available_locales: - en hydra_dispatcher_sentry_dsn: hydra_dispatcher_sentry_environment: +hydra_dispatcher_mounts: [] # Hydra Passwordless configuration diff --git a/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 b/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 index 19dcad7..d1333fb 100644 --- a/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 +++ b/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 @@ -5,7 +5,10 @@ PODMAN_ARGS="\ --network=slirp4netns:allow_host_loopback=true \ --tz=local \ -p 127.0.0.1:3000:80 \ - -v /etc/hydra-dispatcher/conf.d:/var/www/config/hydra \ + -v /etc/hydra-dispatcher/conf.d:/var/www/config/hydra \ + {% for item in hydra_dispatcher_mounts %} + -v "{{ item.host }}:{{ item.container }}" \ + {% endfor %} -e APP_ENV=prod \ -e 'APP_DEBUG={{ hydra_dispatcher_debug }}' \ -e HYDRA_ADMIN_BASE_URL=http://10.0.2.2:4445 \