mirror of
https://github.com/docker/compose.git
synced 2025-07-21 12:44:54 +02:00
Merge pull request #3388 from andrerom/patch-1
Clarify env-file doc that .env is read from cwd
This commit is contained in:
commit
94bcbd1fb6
@ -13,8 +13,8 @@ weight=10
|
|||||||
# Environment file
|
# Environment file
|
||||||
|
|
||||||
Compose supports declaring default environment variables in an environment
|
Compose supports declaring default environment variables in an environment
|
||||||
file named `.env` and placed in the same folder as your
|
file named `.env` placed in the folder `docker-compose` command is executed from
|
||||||
[compose file](compose-file.md).
|
*(current working directory)*.
|
||||||
|
|
||||||
Compose expects each line in an env file to be in `VAR=VAL` format. Lines
|
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.
|
beginning with `#` (i.e. comments) are ignored, as are blank lines.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user