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
- Running a multi-service application
- Scaling a service
- Building and pushing an application ...