So far, in our articles on Docker Container, we have dealt with one container at a time. However, Docker provides us with the flexibility to deal with and run multiple containers as well as using a tool to work on them called Docker Compose. Consequently, in this article, we are going to discuss this in detail. We will cover the following topics:
It is a tool that defines and executes Docker applications with multiple (more than one) containers. Additionally, e use a configuration file “YAML” with the compose for configuring Docker application’s services. Moreover, when we use YAML, we can create and start all the application services with a single command.
Docker Compose runs multiple containers as a single service. So, for example, if the application requires MySQL and NUnit, we can start both the containers at once as a service using the YAML file. Moreover, we need not start each container separately.
#docker #docker compose #containers