Summary
This chapter focused on using Docker Compose to design, create, and manage multi-container applications. The complexity of containerized applications has increased with the rise of the microservice architecture. Thus, it has become difficult to create, manage, and troubleshoot multi-container applications without the appropriate tooling. Docker Compose is the official tool in the Docker toolbox for this purpose.
In this chapter, the main focus was to learn docker-compose
comprehensively. With this aim, the chapter started with the capabilities of the docker-compose
CLI with its commands and flags. Then, the anatomy of docker-compose.yaml
files was presented. The power of Docker Compose actually comes from the configuration capabilities defined in the docker-compose.yaml
files. Therefore, it is essential to learn how to use these files to manage multi-container applications.
Following that, the configuration of services in Docker Compose was illustrated. You have learned...