Skip to content

Instantly share code, notes, and snippets.

@efossas
Last active August 19, 2018 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efossas/52b639b59e3ed839bbd10dd15ad05b42 to your computer and use it in GitHub Desktop.
Save efossas/52b639b59e3ed839bbd10dd15ad05b42 to your computer and use it in GitHub Desktop.
.env
# environment variables that start with 'COMPOSE' or 'DOCKER' are for setting docker configuration
# https://docs.docker.com/compose/reference/envvars/
# compose uses a project namespace for a 'stack', a collection of services orchestrated by a docker-compose.yml file
COMPOSE_PROJECT_NAME=crud
# you can set one or multiple compose files (separated by a ':') to use when running docker-compose up
COMPOSE_FILE=docker-compose.yml
# you can also add environment variables that can be be used in docker-compose.yml files
EXAMPLE_ENVIRONMENT_VARIABLE='some example info'
# in a docker-compose.yml file, you would use it like this: ${EXAMPLE_ENVIRONMENT_VARIABLE}
# if you want the environment variable in a container, you use the 'environment' field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment