How sprintcube/docker-compose-lamp works
This repository provides a Docker Compose local-development stack: a developer starts the services, then visits the local web server to use the sample PHP site and supporting tools. The README documents PHP version selection, database initialization and persistence, virtual hosts, optional HTTPS, phpMyAdmin, Redis, and Xdebug. The Compose definition and most runtime configuration were not excerpted, so service wiring beyond documented behavior is omitted or shown only where README evidence supports it.
Main entry points: docker-compose.yml Compose stack · bin MySQL / MariaDB · index.php Landing page · logs Service logs
Components 16
Runtime services
- Compose stack
docker-compose.yml - Apache
docker-compose.yml - PHP runtime
bin - MySQL / MariaDB
bin - phpMyAdmin
docker-compose.yml - Redis
docker-compose.yml
Configuration and state
- Virtual hosts / SSL
config/vhosts/default.conf - PHP configuration
config/php/php.ini - Database initialization
config/initdb - Database files
data/mysql - Service logs
logs
Sample site
- Landing page
www/index.php - PHP info page
www/phpinfo.php - Database test pages
www
Other components
- Developer
- Browser
Connections 18
- Developer → Compose stack: starts
README.md - Compose stack → Apache: starts
README.md - Compose stack → PHP runtime: starts
README.md - Compose stack → MySQL / MariaDB: starts
README.md - Compose stack → phpMyAdmin: starts
README.md - Compose stack → Redis: starts
README.md - Browser → Apache: requests pages
README.md - Apache → Landing page: serves
README.md - Browser → PHP info page: opens
- Browser → Database test pages: opens
www/index.php - Landing page → MySQL / MariaDB: connects to
www/index.php - Browser → phpMyAdmin: opens
- Apache → Virtual hosts / SSL: uses
README.md - PHP runtime → PHP configuration: uses
README.md - MySQL / MariaDB → Database initialization: executes
README.md - MySQL / MariaDB → Database files: persists to
README.md - Apache → Service logs: writes logs
README.md - MySQL / MariaDB → Service logs: writes logs
README.md