Create a Compose File

Docker Compose allows us to manage several related containers as a single group. We define container sets by creating a creating the Compose file, docker-compose.yml.

In this tutorial, we'll:

  • Create the basic structure of the Compose file
  • Define a container set using off-the-shelf containers
  • Describe where to place it in your project
  • See how directory names are significant in Compose