advancedTop 100 Interview Questions

How does Compose decide which network to put services on by default?

It automatically creates one project-scoped, user-defined bridge network (named after the project/directory) and attaches all defined services to it by default, giving them automatic DNS resolution by service name without any explicit network configuration needed.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.

How does Compose decide which network to put services on by default?

Next Step

Continue to What's the purpose of `environment:` vs `env_file:` in a compose.yaml?← Back to all Docker questions