mirror of https://github.com/docker/docs.git
ENGDOCS-1926 (#19009)
* ENGDOCS-1926 * correct silly mistake * Update content/compose/networking.md * Update content/compose/networking.md
This commit is contained in:
parent
0386831b6e
commit
a2213f6b3b
|
@ -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
|
||||
|
|
|
@ -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**
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue