Compose Files
Let's examine a sample Docker Compose YAML file.
Compose uses YAML files to define microservices applications. We call them Compose files, and Compose expects you to name them compose.yaml
or compose.yml
. However, you can use the -f
flag with the docker compose
command to specify files with arbitrary names.
Docker Compose file for a multi-service application
Here is the Compose file we’ll be using. It’s called compose.yaml
and is in the multi-container
folder.
Get hands-on with 1400+ tech skills courses.