Update reference docs for docker stack deploy

`docker stack deploy` now support multiple composefil. This updates the
reference doc to take that fact into account.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2018-02-09 14:19:48 +01:00
parent a9ecf823ff
commit 4c50007496
No known key found for this signature in database
GPG Key ID: 083CC6FD6EB699A3
1 changed files with 5 additions and 7 deletions

View File

@ -25,7 +25,7 @@ Aliases:
Options: Options:
--bundle-file string Path to a Distributed Application Bundle file --bundle-file string Path to a Distributed Application Bundle file
-c, --compose-file string Path to a Compose file -c, --compose-file strings Path to a Compose file
--help Print usage --help Print usage
--prune Prune services that are no longer referenced --prune Prune services that are no longer referenced
--resolve-image string Query the registry to resolve image digest and supported platforms --resolve-image string Query the registry to resolve image digest and supported platforms
@ -76,14 +76,12 @@ Creating service vossibility_ghollector
Creating service vossibility_lookupd Creating service vossibility_lookupd
``` ```
Only a single Compose file is accepted. If your configuration is split between If your configuration is split between multiple Compose files, e.g. a base
multiple Compose files, e.g. a base configuration and environment-specific overrides, configuration and environment-specific overrides, you can provide multiple
you can combine these by passing them to `docker-compose config` with the `-f` option `--compose-file` flags.
and redirecting the merged output into a new file.
```bash ```bash
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml config > docker-stack.yml $ docker stack deploy --compose-file docker-compose.yml -f docker-compose.prod.yml vossibility
$ docker stack deploy --compose-file docker-stack.yml vossibility
Ignoring unsupported options: links Ignoring unsupported options: links