Back

small reminder that docker compose doesn't load the env file content in the build context. you can load the env values you need like this. here I load the spark username and api token

version: "3.8"
services:
coz_jp_web:
container_name: coz_jp
env_file:
- .env
build:
dockerfile: Dockerfile_prod
context: ../coz_jp
args:
- SPARK_USERNAME=${SPARK_USERNAME}
- SPARK_API_TOKEN=${SPARK_API_TOKEN}

103

  • No matching results...
  • Searching...

/ 1000