clarified links and services communication in Compose (#4416)

Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
Victoria Bialas 2017-08-29 10:16:47 -07:00 committed by GitHub
parent 99f0e0e245
commit 7e0033575a
1 changed files with 4 additions and 0 deletions

View File

@ -1088,6 +1088,10 @@ a link alias (`SERVICE:ALIAS`), or just the service name.
Containers for the linked service will be reachable at a hostname identical to
the alias, or the service name if no alias was specified.
Links are not required to enable services to communicate - by default,
any service can reach any other service at that services name. (See also, the
[Links topic in Networking in Compose](/compose/networking.md#links).)
Links also express dependency between services in the same way as
[depends_on](#dependson), so they determine the order of service startup.