Last updated February 23, 2018

Often we don't want to run just one container at a time, but a set of containers that act together to provide a unit of functionality. Yet, docker run only starts one container at a time, with one command in each container at a time.

Docker Compose lets us overcome this limitation by allowing us to define a single file that describes multiple containers, their relationship to each other, and utilities to manage that set of containers as a single unit.

In this tutorial, we'll:

  • Introduce Docker Compose
  • Run multiple containers at once using Docker Compose
  • Identify the purpose of docker-compose.yml
  • Learn what resources a set of containers share