July 2017
Beginner to intermediate
340 pages
7h 43m
English
The command-lines required to run several containers on the same host can be quite long once you need to add names and networks and bind several sockets.
Docker Compose (https://docs.docker.com/compose/) simplifies the task by letting you define multiple containers' configuration in a single configuration file.
This utility is pre-installed on macOS and Windows when you install Docker. For Linux distributions, you need to get the script and add it to your system. It is a single script, which you can download or even install with PIP (refer to ;https://docs.docker.com/compose/install/).
Once the script is installed on your system, you need to create a YAML file named docker-compose.yml, which contains a services section to enumerate ...