diff --git a/roles/web-app-hermes/files/shell/config-seed.sh b/roles/web-app-hermes/files/shell/config-seed.sh index 579232c92d..70259d2017 100644 --- a/roles/web-app-hermes/files/shell/config-seed.sh +++ b/roles/web-app-hermes/files/shell/config-seed.sh @@ -3,8 +3,8 @@ # nocheck: mirrored-unit-test - runs inside the image's s6 cont-init.d stage, before # 01-hermes-setup; there is no host-side interpreter to exercise it against -seed="/opt/seed/config.yaml" -target="${HERMES_HOME:-/opt/data}/config.yaml" +seed="${HERMES_CONFIG_SEED}" +target="${HERMES_CONFIG_TARGET}" [ -f "$seed" ] || exit 0 diff --git a/roles/web-app-hermes/templates/env.j2 b/roles/web-app-hermes/templates/env.j2 index d1fa19269f..ee3a34ee8d 100644 --- a/roles/web-app-hermes/templates/env.j2 +++ b/roles/web-app-hermes/templates/env.j2 @@ -1,6 +1,8 @@ {% include 'roles/sys-svc-container/templates/env.j2' %} HERMES_SKIP_CONFIG_MIGRATION=true +HERMES_CONFIG_SEED={{ lookup('volume', application_id, 'hermes_config').target | dotenv_quote }} +HERMES_CONFIG_TARGET={{ [ lookup('volume', application_id, 'hermes_data').target, 'config.yaml' ] | path_join | dotenv_quote }} API_SERVER_ENABLED=true API_SERVER_HOST=0.0.0.0