Docker Compose is a service that allows you to run several containers as one. Each of the containers here runs in isolation, but they can communicate with one another if necessary.
![What Is Docker Compose, Why and How to Use It](https://d2zv2ciw0ln4h1.cloudfront.net/uploads/docker_compose_button_39e60f2557.jpeg)
The scripting language YAML, which stands for Yet Another Markup Language and is based on XML, makes writing Docker Compose files a breeze. Another great thing about Docker Compose is that users can activate all the services (containers) using a single command.
Here are the benefits of using docker compose:
- Single host deployment – This means you can run everything on a single piece of hardware
- Quick and easy configuration – Due to YAML scripts
- High productivity – Docker Compose reduces the time it takes to perform tasks
- Security – All the containers are isolated from each other, reducing the threat landscape
Source:
https://www.simplilearn.com/tutorials/docker-tutorial/docker-compose