mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Update documentation for external
param
Signed-off-by: Joffrey F <joffrey@docker.com> Conflicts: docs/compose-file.md
This commit is contained in:
parent
59493dd7aa
commit
fec8cc9f80
@ -627,7 +627,11 @@ documentation for more information. Optional.
|
|||||||
## external
|
## external
|
||||||
|
|
||||||
If set to `true`, specifies that this volume has been created outside of
|
If set to `true`, specifies that this volume has been created outside of
|
||||||
Compose.
|
Compose. `docker-compose up` will not attempt to create it, and will raise
|
||||||
|
an error if it doesn't exist.
|
||||||
|
|
||||||
|
`external` cannot be used in conjunction with other volume configuration keys
|
||||||
|
(`driver`, `driver_opts`).
|
||||||
|
|
||||||
In the example below, instead of attemping to create a volume called
|
In the example below, instead of attemping to create a volume called
|
||||||
`[projectname]_data`, Compose will look for an existing volume simply
|
`[projectname]_data`, Compose will look for an existing volume simply
|
||||||
@ -712,7 +716,11 @@ A full example:
|
|||||||
### external
|
### external
|
||||||
|
|
||||||
If set to `true`, specifies that this network has been created outside of
|
If set to `true`, specifies that this network has been created outside of
|
||||||
Compose.
|
Compose. `docker-compose up` will not attempt to create it, and will raise
|
||||||
|
an error if it doesn't exist.
|
||||||
|
|
||||||
|
`external` cannot be used in conjunction with other network configuration keys
|
||||||
|
(`driver`, `driver_opts`, `ipam`).
|
||||||
|
|
||||||
In the example below, `proxy` is the gateway to the outside world. Instead of
|
In the example below, `proxy` is the gateway to the outside world. Instead of
|
||||||
attemping to create a network called `[projectname]_outside`, Compose will
|
attemping to create a network called `[projectname]_outside`, Compose will
|
||||||
|
Loading…
x
Reference in New Issue
Block a user