This documentation is intended for developers looking to build, debug, or modify the Inception infrastructure.
Before building the project, ensure your development environment meets these requirements:
Docker, Docker Compose, and GNU Make must be installed.
Your local machine must recognize the project domain. Edit /etc/hosts: 127.0.0.1 login.42.fr
- Ensure srcs/.env is created with the required variables (SQL_DATABASE, WP_TITLE, etc.).
- Ensure the srcs/secrets/ folder contains the .txt files for all sensitive passwords.
The project uses custom-built images based on Alpine or Debian.
make reThis will trigger a full cleanup and rebuild all images from scratch.
Use these commands to interact with the running infrastructure:
Access a container's internal terminal for debugging:
docker exec -it <container_name> shTrack real-time output from the services:
docker-compose -f srcs/docker-compose.yml logs -fVerify container communication:
docker network ls
docker network inspect inceptionThe project uses Docker Volumes to ensure data survives container restarts and removals. These volumes are mapped to the host's file system:
Stored in a named volume mapped to /home/login/data/mariadb.
Stored in a named volume mapped to /home/login/data/wordpress.
make down removes containers but keeps the data in the volumes. make fclean removes containers, images, and deletes the volumes/data from the host system.