July 2017
Intermediate to advanced
374 pages
8h
English
As per the official Docker Compose website (https://docs.docker.com/compose/overview/), Compose is a tool for defining and running multicontainer Docker applications. With Compose, you use a Compose file to configure your application's services.
In simpler terms, it helps us build and run our application in a much simpler and faster way.
In the previous section, where we were deploying our application and building the images, we first created a Dockerfile and then executed the Docker build command to build it. Once it is built, we usually use the docker run command to spin up the container, but, instead of that, in Docker Compose, we will define a .yml file with config details, such as ports, command to execute, and so on. ...