docs(compose): fix environment variable sentence (#26386)

## Description

Fixes #26385.

Correct the incomplete sentence in the Compose variable interpolation
guide so the relationship between `.env` variables and container
environment variables is clear.

## Validation

- `git diff --check`
- Scoped repository lint was unavailable because the pinned local
dependencies are not installed.
This commit is contained in:
Niels Kaspers authored and GitHub committed 2026-10-20 12:44:59 +01:00
1 parent 95b8ec69e3
commit fea36e9fcc
1 file changed
+1 -1
@@ -114,7 +114,7 @@ services:
> [!IMPORTANT]
>
> Be aware of [Environment variables precedence](envvars-precedence.md) when using variables in an `.env` file that as environment variables in your container's environment.
> Be aware of [Environment variables precedence](envvars-precedence.md) when using variables in an `.env` file that are also used as environment variables in your container's environment.
- You can place your `.env` file in a location other than the root of your project's directory, and then use the [`--env-file` option in the CLI](#substitute-with---env-file) so Compose can navigate to it.