Environment variable and docker-compose -
when running number of linked services docker-compose up
, how can add values environment variables passed specific containers services? have service "webapp" uses timeout environment variable, how set timeout=10000 docker-compose container "webapp" lives in? have tried notation -e timeout=10000
docker
command, not seem work.
with docker compose have specify environment variables in docker-compose.yml
env_file
or environment
configuration commands
https://docs.docker.com/compose/compose-file/#env-file https://docs.docker.com/compose/compose-file/#environment
Comments
Post a Comment