mirror of
https://github.com/docker/compose.git
synced 2026-11-18 14:13:49 +00:00
The service name is always registered as a DNS alias on every network a service is attached to, so two projects sharing a network and running a service with the same name resolve it to either container. Honor the use_service_name_alias attribute of a service's network entry: when false, the service name is not registered as an alias on that network only. The container name alias, the user's aliases and the service's other networks are untouched, and --use-aliases still decides whether any alias is set. Unset keeps the current behavior. The attribute comes from compose-go, through its ServiceNameAliasEnabled helper. go.mod temporarily replaces compose-go with its main branch, which has it: drop the replace once a version containing it is tagged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Guillaume Lours <glours@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| api | ||
| bridge | ||
| compose | ||
| dryrun | ||
| e2e | ||
| mocks | ||
| remote | ||
| utils | ||
| watch | ||