Skip to content

Commit f6bd53d

Browse files
committed
ENGDOCS-2257
1 parent ad800a5 commit f6bd53d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

content/manuals/compose/how-tos/environment-variables/set-environment-variables.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ services:
6868
env_file: "webapp.env"
6969
```
7070

71-
Using an `.env` file lets you to use the same file for use by a plain `docker run --env-file ...` command, or to share the same `.env` file within multiple services without the need to duplicate a long `environment` YAML block.
71+
Using an `.env` file lets you use the same file for use by a plain `docker run --env-file ...` command, or to share the same `.env` file within multiple services without the need to duplicate a long `environment` YAML block.
7272

7373
It can also help you keep your environment variables separate from your main configuration file, providing a more organized and secure way to manage sensitive information, as you do not need to place your `.env` file in the root of your project's directory.
7474

@@ -85,7 +85,6 @@ The paths to your `.env` file, specified in the `env_file` attribute, are relati
8585
### Additional information
8686

8787
- If multiple files are specified, they are evaluated in order and can override values set in previous files.
88-
- In addition, as the `.env` file supports [interpolation](variable-interpolation.md), it is possible to combine those with values set by `environment`.
8988
- As of Docker Compose version 2.24.0, you can set your `.env` file, defined by the `env_file` attribute, to be optional by using the `required` field. When `required` is set to `false` and the `.env` file is missing, Compose silently ignores the entry.
9089
```yaml
9190
env_file:

0 commit comments

Comments
 (0)