diff --git a/content/compose/environment-variables/set-environment-variables.md b/content/compose/environment-variables/set-environment-variables.md index 2ab145ace5..585dbfaffb 100644 --- a/content/compose/environment-variables/set-environment-variables.md +++ b/content/compose/environment-variables/set-environment-variables.md @@ -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 diff --git a/content/compose/networking.md b/content/compose/networking.md index 0349a81582..8dc16ec6aa 100644 --- a/content/compose/networking.md +++ b/content/compose/networking.md @@ -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** >