mirror of https://github.com/docker/docs.git
parent
414a24f102
commit
2dee6b5ecb
|
@ -80,7 +80,7 @@ services:
|
||||||
- You can place your `.env` file in a location other than the root of your project's directory, and then use one of the following methods so Compose can navigate to it:
|
- You can place your `.env` file in a location other than the root of your project's directory, and then use one of the following methods so Compose can navigate to it:
|
||||||
- The [`--env-file` option in the CLI](#substitute-with---env-file)
|
- The [`--env-file` option in the CLI](#substitute-with---env-file)
|
||||||
- Using the [`env_file` attribute in the Compose file](../compose-file/05-services.md#env_file)
|
- Using the [`env_file` attribute in the Compose file](../compose-file/05-services.md#env_file)
|
||||||
- Values in your `.env` file can be overridden from the command line by using [`docker-compose up -e`](#set-environment-variables-with-docker-compose-run---env).
|
- Values in your `.env` file can be overridden from the command line by using [`docker compose run -e`](#set-environment-variables-with-docker-compose-run---env).
|
||||||
- Your `.env` file can be overridden by another `.env` if it is [substituted with `--env-file`](#substitute-with---env-file).
|
- Your `.env` file can be overridden by another `.env` if it is [substituted with `--env-file`](#substitute-with---env-file).
|
||||||
|
|
||||||
> **Important**
|
> **Important**
|
||||||
|
|
Loading…
Reference in New Issue