mirror of https://github.com/docker/docs.git
clarified links and services communication in Compose (#4416)
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
parent
99f0e0e245
commit
7e0033575a
|
@ -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 service’s 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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue