mirror of https://github.com/docker/docs.git
Apply suggestions from code review
Implementing suggestions. Co-authored-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
95519c425d
commit
abc10b0cae
|
@ -33,10 +33,10 @@ You can set default values for any environment variables referenced in the
|
|||
Compose file, or used to configure Compose, in an [environment file](env-file.md)
|
||||
named `.env`. The `.env` file path is as follows:
|
||||
|
||||
- Starting with `+v1.28`, `.env` file is placed at the base of the project directory.
|
||||
- Starting from `v1.28`, the `.env` file is placed at the base of the project directory.
|
||||
- Project directory can be explicitly defined with the `--file` option or `COMPOSE_FILE`
|
||||
environment variable. Otherwise, it is the current working directory where the `docker compose` command is executed (`+1.28`).
|
||||
- For previous versions, it might have trouble resolving `.env` file with `--file` or `COMPOSE_FILE`. To work around it, it is recommended to use `--project-directory`, which overrides the path for the `.env` file. This inconsistency is addressed in `+v1.28` by limiting the file path to the project directory.
|
||||
- For versions older than `v1.28`, it might have trouble resolving `.env` file with `--file` or `COMPOSE_FILE`. To work around it, it is recommended to use `--project-directory`, which overrides the path for the `.env` file. This inconsistency is addressed in `v1.28` by limiting the file path to the project directory.
|
||||
|
||||
|
||||
```console
|
||||
|
|
Loading…
Reference in New Issue