Docker Compose
Docker provides another tool called Docker Compose, allowing developers to run multiple containers simultaneously. Think about use cases where you are building a server that requires temporary memory storage to store cart information; this requires using an external application such as Redis, which provides an in-memory database.
In this kind of scenario, our application depends on Redis to function properly, which means that we need to run Redis at the same time we run our application. There are many other different kinds of use cases where there will be a need to use Docker Compose. The Docker Compose documentation provides a complete step-by-step guide on how to install it on your local machine: https://docs.docker.com/compose/install/.
Docker Compose is actually a file that outlines the different containers we want to use. Let’s try to run the sample Docker Compose file that is inside the chapter13/embed
folder. Open the terminal and make sure you are...