This project runs a WordPress website with three services:
nginx - Web server that handles HTTPS connections on port 443
WordPress + PHP-FPM - The WordPress application for managing your website content
MariaDB - Database that stores all WordPress data (posts, users, settings)
How they communicate:
- You visit the site → nginx receives the request
- nginx forwards PHP requests → WordPress processes them
- WordPress requests MariaDB for data
- Response goes back through the chain to your browser
cd ~/Documents/Inception
make buildThis builds and starts all containers. First run takes a few minutes.
make downData of WordPress files and database is preserved.
make fclean # Remove everything including data
make build # Start freshOpen your browser and go to:
https://login.42.fr
Note: You'll see a security warning because the certificate is self-signed. Click "Advanced" → "Proceed to login.42.fr" to continue.
Go to:
https://login.42.fr/wp-admin
Log in with the credentials from your .env file (see next section).
All usernames and passwords are in:
srcs/.env
Database credentials:
MYSQL_DATABASE=wordpress
MYSQL_USER=wpuser
MYSQL_PASSWORD=your_password
MYSQL_ROOT_PASSWORD=your_root_passwordWordPress Admin user:
WP_ADMIN_USER=moderator
WP_ADMIN_PASSWORD=your_admin_password
WP_ADMIN_EMAIL=admin@login.42.frWordPress Second user:
WP_USER=guest
WP_USER_PASSWORD=your_user_password
WP_USER_EMAIL=editor@login.42.frdocker psYou should see 3 containers running:
nginxwp-phpmariadb
# View logs for any errors
docker logs nginx
docker logs wp-php
docker logs mariadbMethod 1: Open https://login.42.fr in browser
- If the site loads → Everything works ✅
Method 2: Command line test
curl -k https://login.42.fr- If you see HTML code → nginx and WordPress are working ✅
# Start project
make build
# Stop project
make down
# View running containers
docker ps
# Check logs
docker logs nginx
docker logs wp-php
docker logs mariadb
# Full reset
make fclean && makeURLs:
- Website: https://login.42.fr
- Admin: https://login.42.fr/wp-admin
Data location:
- WordPress files:
/home/host/data/wordpress/ - Database:
/home/host/data/mariadb/