...

/

Docker Compose File

Docker Compose File

Learn the properties you can add in the docker-compose.yml file.

Docker Compose

Docker Compose is a utility for launching and managing multiple containers. It is more powerful and easier than using a series of docker run commands.

The configuration is usually defined in a docker-compose.yml (YAML) file. This lesson provides a summary of the commands that will be used most often in your Docker journey.

YML is a standard data format using new lines, tabs, colons, and dashes to indicate sections and data.

All configuration files must specify:

  1. Docker Compose version compatibility.
  2. The services (containers) to launch.
  3. The networks (if used).
  4. The volumes (if used).
 ...