A web application fully containerized with Docker, built up in progressive stages (etape1 → etape4) from a single web server to a complete multi-service stack running a WordPress-style PHP application behind NGINX with a MySQL database - orchestrated by Docker Compose.
| Stage | Focus |
|---|---|
| etape1 | NGINX serving static content with a custom nginx.conf |
| etape2 | Custom PHP image (php:7.4-fpm) with PDO / MySQL extensions |
| etape3 | NGINX reverse-proxying requests to PHP-FPM |
| etape4 | Full stack: NGINX + PHP-FPM + MySQL 8 via Docker Compose |
:8080 internal internal
client ────▶ [ nginx ] ────▶ [ php-fpm ] ────▶ [ mysql:8.0 ]
http script database_wp
└──────── wp-network (bridge) ────────┘
- http - NGINX, published on
localhost:8080, mounts the app and config - script - PHP-FPM, built from the local
Dockerfile - database_wp - MySQL 8, holds the application database
cd etape4
docker compose up -d
# open http://localhost:8080
⚠️ For real deployments, moveMYSQL_ROOT_PASSWORDout ofdocker-compose.ymlinto an.envfile (git-ignored) rather than committing credentials.
Released under the MIT License.