Docker Compose
Compose default network
Services without explicit network selection normally join a project-scoped default network and can resolve each other by service name. Use the destination container port. internal: true restricts external connectivity but is not a complete sandbox. A healthy loopback probe does not establish cross-container connectivity.
Formal Syntax & Structure
docker syntaxdocker
Compose default networkWorking Example
Example Snippetdocker
networks: default: internal: true