Docker Compose
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access