Merge pull request #12470 from ulyssessouza/update-project-dir

Update project directory precedence doc
This commit is contained in:
Usha Mandya 2021-03-10 14:50:45 +00:00 committed by GitHub
commit 1d39082fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -5,8 +5,10 @@ title: Declare default environment variables in file
---
Compose supports declaring default environment variables in an environment file
named `.env` placed in the folder where the `docker-compose` command is executed
*(current working directory)*.
named `.env` placed in the project directory. The project directory is specified by order of precedence:
- `--project-dir` flag
- Folder of the first `--file` flag
- Current directory
## Syntax rules