Managing Containers with Docker Compose
In the previous chapter, we learned a lot about how container networking works on a single Docker host. We introduced the Container Network Model (CNM), which forms the basis of all networking between Docker containers, and then we dove deep into different implementations of the CNM, specifically the bridge network. Finally, we introduced Traefik, a reverse proxy to enable sophisticated HTTP application-level routing between containers.
This chapter introduces the concept of an application consisting of multiple services, each running in a container, and how Docker Compose allows us to easily build, run, and scale such an application using a declarative approach.
This chapter covers the following topics:
- Demystifying declarative versus imperative orchestration of containers
- Running a multi-service application
- Building images with Docker Compose
- Running an application with Docker Compose
- Scaling a service
- Building...