How vaclav-cerny/docker-lemp-stack works
This repository is a Docker-based LEMP hosting stack, not an application framework. The user’s main workflow is to run the setup in production or localhost mode, configure the domain and services, then visit the hosted site; the included PHP page tests MySQL connectivity and displays PHP information. The stack also documents Traefik routing and TLS, plus PhpMyAdmin and Portainer management. The source excerpt covers only the sample PHP page, so setup and service relationships below rely on README statements; unverified wiring is omitted.
Main entry points: nginx.conf Nginx web server · traefik.toml Traefik proxy · configure.sh Stack configurator · start.sh Stack launcher
Components 18
Setup and configuration
- Stack launcher
docker/start.sh - Stack configurator
docker/configure.sh - Container definition
docker/docker-compose.yml - Nginx settings
docker/nginx/nginx.conf - MySQL settings
docker/mysql/.env - PHP settings
docker/php-fpm/php-ini-overrides.ini - Traefik settings
docker/traefik/traefik.toml - HTTPS variant
docker/traefik/traefik.https.toml
Web and database
- Nginx web server
docker/nginx/nginx.conf - PHP runtime
docker/php-fpm/Dockerfile - Sample site and DB check
public/index.php - MySQL database
docker/mysql/.env
Routing and management
- Traefik proxy
docker/traefik/traefik.toml - PhpMyAdmin
docker/docker-compose.yml - Portainer
docker/docker-compose.yml
Other components
- Operator
- Docker host
- Site visitor
Connections 21
- Operator → Stack launcher: runs
README.md - Stack launcher → Stack configurator: configures
- Stack launcher → Container definition: starts stack
- Operator → Stack configurator: reconfigures
README.md - Stack configurator → Nginx settings: sets up
- Stack configurator → Traefik settings: sets up
- Nginx web server → Nginx settings: uses settings
README.md - MySQL database → MySQL settings: uses settings
README.md - PHP runtime → PHP settings: uses overrides
README.md - Traefik proxy → Traefik settings: uses settings
README.md - Traefik proxy → HTTPS variant: swaps config
README.md - Site visitor → Traefik proxy: requests services
README.md - Traefik proxy → Nginx web server: routes requests
- Nginx web server → PHP runtime: serves PHP
README.md - Nginx web server → Sample site and DB check: serves site
README.md - Sample site and DB check → MySQL database: connects to
public/index.php - Site visitor → PhpMyAdmin: manages database
README.md - PhpMyAdmin → MySQL database: manages
README.md - Operator → Portainer: manages containers
README.md - Portainer → Docker host: manages
README.md - Container definition → Docker host: runs containers