Hands-on task
docker-compose file
Write /root/docker-compose.yml with two services: web (image nginx) and db (image postgres:16), where web depends on db (depends_on). The file must conform to the Compose Specification schema — run yamlschema compose /root/docker-compose.yml to see the errors.
- docker-compose
- services
- depends_on
- images and tags
- yaml