Update documentation for `external` param

Signed-off-by: Joffrey F <joffrey@docker.com>

Conflicts:
	docs/compose-file.md
This commit is contained in:
Joffrey F 2016-01-20 11:07:28 -08:00 committed by Aanand Prasad
parent 0952c1bb51
commit 38a6d04852
1 changed files with 10 additions and 2 deletions

View File

@ -627,7 +627,11 @@ documentation for more information. Optional.
## external
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
`[projectname]_data`, Compose will look for an existing volume simply
@ -712,7 +716,11 @@ A full example:
### external
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
attemping to create a network called `[projectname]_outside`, Compose will