Inception is a system administration project for 42 School that focuses on containerization using Docker. The goal is to build a secure, modular infrastructure composed of multiple interlinked services, each running in its own container, using docker-compose. The services are entirely built from scratch using either Alpine or Debian base images.
- NGINX with TLSv1.2/TLSv1.3 (HTTPS only access on port 443)
- WordPress (with PHP-FPM) and user configuration
- MariaDB database container with a persistent volume
- Docker volumes for WordPress files and MariaDB data
- Custom Dockerfiles for every service
- Self-contained Docker network
- Automated setup using a Makefile
- Secure and compliant with 42 School standards
- All passwords and sensitive data are stored using Docker secrets and
.envfiles - No plain-text passwords or credentials in Dockerfiles
- TLS (HTTPS) secured NGINX entrypoint
- Administrator user name doesn't include any insecure default like
admin
.
├── Makefile
├── srcs
│ ├── docker-compose.yml
│ ├── .env
│ └── requirements
│ ├── nginx/
│ ├── wordpress/
│ └── mariadb/
└── secrets/
├── db_password.txt
└── db_root_password.txt
-
Clone the repository:
git clone https://github.com/vaismand/Inception.git cd Inception -
Adjust your
.envfile as needed for environment variables. -
Run the setup:
make
-
Visit your domain (e.g.,
https://yourlogin.42.fr) to access the WordPress site.
⚠️ This project is designed to run inside a Virtual Machine with Docker and Docker Compose installed.
- HTTPS only: All traffic is routed through NGINX using SSL/TLS (port 443)
- No access via HTTP or insecure protocols
- Local domain resolution (
/etc/hosts) mapsyourlogin.42.frto your VM IP
- Deep dive into Dockerfile best practices (PID 1, init systems, secure builds)
- Docker Compose networking and service orchestration
- TLS/SSL certificate configuration for NGINX
- Secrets management in containerized environments
- Automating infrastructure with Makefiles
- Real-world use of volumes and environment variable management
This project is part of the 42 School curriculum and shared for educational and professional demonstration purposes.
Made with ❤️ during my time at 42 School.