Example of Dockerfile for teaching
This gallery example presents a collection of Dockerfile and docker-compose configuration snippets for teaching container orchestration. The Dockerfile.php.example demonstrates a multi-step build process using Debian as a base, installing PHP CLI, copying local scripts, downloading remote data, and configuring volumes, ports, and the working directory. The docker-compose files illustrate core Compose features including service definitions with MySQL and WordPress images, port mapping, environment variables, device access, links, and named volumes. The code directly shows YAML syntax for `services`, `volumes`, and specific directives like `build.context`, `depends_on`, and `restart`.