A containerized web stack with NGINX, WordPress (PHP-FPM), and MariaDB orchestrated via Docker Compose. It focuses on HTTPS-only access, service isolation, secrets management, and persistent storage.
- NGINX (reverse proxy + TLS)
- WordPress (application)
- MariaDB (database)
- Docker Compose (orchestration)
Flow: Client -> NGINX (HTTPS) -> WordPress -> MariaDB
- Docker
- Docker Compose
- Make
makeOr:
docker compose -f srcs/docker-compose.yml --env-file srcs/.env up --build- Add host mapping in
/etc/hosts(example:127.0.0.1 anikitin.42.fr). - Open
https://anikitin.42.fr. - Accept the self-signed certificate warning if prompted.
- The WordPress page should load.
make # build and start
make down # stop containers
make logs # stream logs
make clean # remove containers/network/volumes
make fclean # full cleanup (including images and host data)- HTTPS-only entry point (port 443)
- Credentials handled with Docker secrets
- Named volumes for WordPress and MariaDB persistence
- Isolated internal Docker network for inter-service communication
