Hands-on task
docker-compose: profiles
In /root/docker-compose.yml, define a service web (nginx, always active), debug (busybox, profile debug), and metrics (profile monitoring). Services with a profile come up only when the profile is explicitly requested. The file must conform to the Compose Specification schema — run yamlschema compose /root/docker-compose.yml to see the errors.
- docker compose
- profiles
- yaml
- conditional service startup