Read a compose.yaml
#A Compose file describes an application as services (each one becomes one or more containers from an image), plus the volumes, networks, configs and secrets they share. name sets the project name, which prefixes container, volume and network names. Compose looks for compose.yaml in the current directory, then parent directories.
Fragment
The top-level version: key is obsolete; current Compose ignores it and warns. compose.yaml is the preferred file name; docker-compose.yml is still read.
Image tags, the example API image and the password are illustrative; see the secrets entry for keeping a real password out of the file. A bare "8080:80" publishes on every host interface; prefix 127.0.0.1: to keep a development port local.