Merge pull request #3359 from bfirsh/clarify-compose-file-networks-documentation

Clarify service networks documentation
This commit is contained in:
Daniel Nephin 2016-04-21 11:19:32 -04:00
commit 1988dfeaf0
1 changed files with 15 additions and 11 deletions

View File

@ -502,6 +502,8 @@ the special form `service:[service name]`.
Networks to join, referencing entries under the
[top-level `networks` key](#network-configuration-reference).
services:
some-service:
networks:
- some-network
- other-network
@ -516,6 +518,8 @@ Since `aliases` is network-scoped, the same service can have different aliases o
The general format is shown here.
services:
some-service:
networks:
some-network:
aliases: