Up to this point in the book, we have mostly been looking at working with a single container. Manually configuring containers with
docker run, creating networks with
docker network, and managing all of that by hand is a very possible way of setting up your application, but Docker Compose allows us to specify all of that configuration through a simple file. Docker Compose will also handle managing all of the containers and setup through a set of basic commands.
Docker Compose is based on an older orchastration tool called ‘Fig.’ The idea of Fig was to make it easy to define full-stack applications in a single configuration file yet still help maintain the “one process per application” design of Docker. Docker Compose extends ...