mirror of https://github.com/docker/docs.git
Merge pull request #12470 from ulyssessouza/update-project-dir
Update project directory precedence doc
This commit is contained in:
commit
1d39082fa8
|
|
@ -5,8 +5,10 @@ title: Declare default environment variables in file
|
||||||
---
|
---
|
||||||
|
|
||||||
Compose supports declaring default environment variables in an environment file
|
Compose supports declaring default environment variables in an environment file
|
||||||
named `.env` placed in the folder where the `docker-compose` command is executed
|
named `.env` placed in the project directory. The project directory is specified by order of precedence:
|
||||||
*(current working directory)*.
|
- `--project-dir` flag
|
||||||
|
- Folder of the first `--file` flag
|
||||||
|
- Current directory
|
||||||
|
|
||||||
## Syntax rules
|
## Syntax rules
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue