mirror of https://github.com/docker/docs.git
Minor style updates
This commit is contained in:
parent
231b04065e
commit
7d9d5f3aac
|
@ -22,10 +22,12 @@ If you have multiple environment variables, you can substitute them by providing
|
||||||
a path to your environment variables file. By default, the `docker-compose`
|
a path to your environment variables file. By default, the `docker-compose`
|
||||||
command will look for a file named `.env` in the directory you run the command.
|
command will look for a file named `.env` in the directory you run the command.
|
||||||
By passing the file as an argument, you can store it anywhere and name it
|
By passing the file as an argument, you can store it anywhere and name it
|
||||||
appropriately, e.g (.env.ci, .env.dev, .env.prod). Passing the file path is
|
appropriately, for example, `.env.ci`, `.env.dev`, `.env.prod`. Passing the file path is
|
||||||
done using the `--env-file` option:
|
done using the `--env-file` option:
|
||||||
|
|
||||||
``` docker-compose --env-file ./config/.env.dev up ```
|
```shell
|
||||||
|
docker-compose --env-file ./config/.env.dev up
|
||||||
|
```
|
||||||
|
|
||||||
For more information, see the
|
For more information, see the
|
||||||
[Variable substitution](compose-file/index.md#variable-substitution) section in the
|
[Variable substitution](compose-file/index.md#variable-substitution) section in the
|
||||||
|
|
Loading…
Reference in New Issue