Skip to content

Commit 0b4f128

Browse files
committed
fix(data-manager): wire OPENMAPX_COMPOSE_FILE into the container env
The E9 -f hardening reads process.env.OPENMAPX_COMPOSE_FILE in motis-import's create fallback, but the data-manager uses a curated environment block (no env_file: .env), so the var never reached the container. Add it to the manifest, derived from OPENMAPX_HOST_DIR — the repo is bind-mounted at the host path, so the generated compose is readable there and the path resolves identically inside the container, giving correct host bind-mount paths for docker compose -f up -d motis-staging.
1 parent 07155e9 commit 0b4f128

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

services/data-manager/service.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"OPENMAPX_ROOT_DIR": "${OPENMAPX_HOST_DIR:?OPENMAPX_HOST_DIR must be set — the data-manager container persists the Transitous lockfile (POST /transit/bump) via this path; see infra/docker/.env.example}",
2222
"OPENMAPX_CUSTOM_INTEGRATIONS_DIR": "${OPENMAPX_CUSTOM_INTEGRATIONS_DIR:-/app/custom_integrations}",
2323
"TSX_TSCONFIG_PATH": "${OPENMAPX_HOST_DIR:?OPENMAPX_HOST_DIR must be set}/tsconfig.base.json",
24+
"OPENMAPX_COMPOSE_FILE": "${OPENMAPX_HOST_DIR:?OPENMAPX_HOST_DIR must be set}/infra/docker/docker-compose.generated.yml",
2425
"APP_API_BASE_URL": "${APP_API_BASE_URL:-http://app-api:3001}",
2526
"POI_INGEST_BOOTSTRAP": "${POI_INGEST_BOOTSTRAP:-true}",
2627
"UTMC_USERNAME": "${UTMC_USERNAME:-}",

0 commit comments

Comments
 (0)