zhukovdm / smartwalk

🗺️ Web application for keyword-aware route search
https://smartwalk.vercel.app
MIT License
2 stars 0 forks source link

Expand `shell` environment variables in docker compose #9

Closed zhukovdm closed 1 year ago

zhukovdm commented 1 year ago

The construction below injects environment variables into a container. However, these variables are not visible in the file, and ${VAR} ends up being undefined. The true value of this particular variable is defined in the ./infra/.env file, while variables for other services are defined in the compose file.

services:
  routing:
    environment:
      - REGION_FILE=...
    entrypoint: ...${REGION_FILE}...