March 2018
Intermediate to advanced
380 pages
9h 23m
English
Docker compose is a tool in the Docker platform that is used to define and run multi-container applications. It lets us define how a container will behave when it is run in production, and also lets us define other services that it depends on and how services work with each other. Each application is a service as it defines the behavior of the container, for example, what port it runs on, what environment variables it uses, and so on. A YAML file is used for this. A single docker.compose.yml file can define all the services that are required for a multi-container application and can then be started with a single command. We will see more about Docker and docker -compose in Chapter 11, Deploying with Docker Compose.