ENGDOCS-1926 (#19009)

* ENGDOCS-1926

* correct silly mistake

* Update content/compose/networking.md

* Update content/compose/networking.md
This commit is contained in:
Allie Sadler 2024-01-04 13:18:26 +00:00 committed by GitHub
parent 0386831b6e
commit a2213f6b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -128,7 +128,7 @@ web:
- Environment variables declared in the `.env` file cannot then be referenced again separately in the Compose file.
- If you use both the `env_file` and `environment` attribute, environment variables set by `environment` take precedence.
- The paths to your `.env` file, specified in the `env_file` attribute, are relative to the location of your `compose.yml` file.
- Values in your `.env` files 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` files can be overridden from the command line by using [`docker compose run -e`](#set-environment-variables-with-docker-compose-run---env).
- Your `.env` files can be overriden by another `.env` if it is [substituted with `--env-file`](#substitute-with---env-file).
### Substitute from the shell

View File

@ -9,8 +9,7 @@ title: Networking in Compose
By default Compose sets up a single
[network](../engine/reference/commandline/network_create.md) for your app. Each
container for a service joins the default network and is both reachable by
other containers on that network, and discoverable by them at a hostname
identical to the container name.
other containers on that network, and discoverable by the service's name.
> **Note**
>