Practical guide for running and using the Inception stack.
This project runs a WordPress website with three services:
| Service | Role |
|---|---|
| NGINX | HTTPS reverse proxy |
| WordPress + PHP-FPM | CMS and PHP runtime |
| MariaDB | Database backend |
- Add these host entries:
127.0.0.1 dbarba-v.42.fr
127.0.0.1 www.dbarba-v.42.fr
- Start the infrastructure:
makeEquivalent commands:
make inceptionmake allmake up
When required secret files are missing, the Makefile helper prompts you to create them.
| Command | Description |
|---|---|
make / make inception / make all / make up |
Start all containers in detached mode |
make build |
Rebuild images from the configured .env |
make down |
Stop and remove containers and networks (volumes kept) |
make stop |
Stop running containers without removing them |
make restart |
Restart all containers |
make ps |
Show service/container status |
make shell SERVICE=<name> |
Open /bin/sh inside a running container |
make config |
Print resolved Docker Compose configuration |
make secrets |
Verify/create missing secret files |
make clean |
Remove containers, volumes, and host data directories |
make fclean |
Full cleanup: containers, volumes, images, and host data directories |
make re |
Rebuild from scratch (fclean + all) |
These URLs are valid when running on the default VM setup:
| URL | Description |
|---|---|
https://dbarba-v.42.fr |
Main website |
https://dbarba-v.42.fr/wp-admin |
WordPress admin dashboard |
https://dbarba-v.42.fr/wp-login.php |
WordPress login page |
Secrets are stored as plain-text files under secrets/.
secrets/
├── mariadb/
│ ├── mysql_root_password.secret
│ ├── mysql_wp_db_admin_password.secret
│ └── mysql_wp_db_admin_username.secret
├── wordpress-php/
│ ├── wp_admin_password.secret
│ ├── wp_admin_username.secret
│ ├── wp_admin_mail.secret
│ ├── wp_user_password.secret
│ ├── wp_user_username.secret
│ └── wp_user_mail.secret
└── ssl/
├── dbarba-v.42.fr.cert
└── dbarba-v.42.fr.key
Rules:
- Each file contains only the secret value.
- Do not add trailing newline characters.
- Do not commit secret files to source control.
If you run in a non-interactive environment (no TTY), make cannot prompt for missing values. Create all secret files beforehand.
Check that all services are up:
make psAlternative direct command:
docker compose -f ./srcs/docker-compose.yml ps- Site is not reachable: confirm
/etc/hostshas both domain entries and verify service state withmake ps. makefails due to missing secrets: runmake secretsor create files manually insecrets/.- Changes to Dockerfiles or templates are not applied: run
make buildor force a clean rebuild withmake re.