Docker Compose

Why Docker Compose?

Docker Compose is comprised of 2 related things:

  1. a yaml file describing options for:
    • containers
    • volumes
    • networks
  2. a CLI tool docker-compose used to read the yaml file.

For practicing, clone the course's repo and check the compose-sample-2/ directory. The docker-compose.yml contains configs for an nginx container, to run as a proxy for an apache server, acting as a web server.