mirror of
https://github.com/docker/compose.git
synced 2025-10-24 16:53:52 +02:00
1.3 KiB
1.3 KiB
Environment file
Compose supports declaring default environment variables in an environment
file named .env and placed in the same folder as your
compose file.
Compose expects each line in an env file to be in VAR=VAL format. Lines
beginning with # (i.e. comments) are ignored, as are blank lines.
Note: Values present in the environment at runtime will always override those defined inside the
.envfile. Similarly, values passed via command-line arguments take precedence as well.
Those environment variables will be used for variable substitution in your Compose file, but can also be used to define the following CLI variables:
COMPOSE_API_VERSIONCOMPOSE_FILECOMPOSE_HTTP_TIMEOUTCOMPOSE_PROJECT_NAMEDOCKER_CERT_PATHDOCKER_HOSTDOCKER_TLS_VERIFY