Skip to content
vaismandPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🏗️ Inception - System Administration with Docker

📘 Overview

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.

🧩 Features

  • 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

🔒 Security

  • All passwords and sensitive data are stored using Docker secrets and .env files
  • No plain-text passwords or credentials in Dockerfiles
  • TLS (HTTPS) secured NGINX entrypoint
  • Administrator user name doesn't include any insecure default like admin

📁 Project Structure

.
├── Makefile
├── srcs
│   ├── docker-compose.yml
│   ├── .env
│   └── requirements
│       ├── nginx/
│       ├── wordpress/
│       └── mariadb/
└── secrets/
    ├── db_password.txt
    └── db_root_password.txt

🛠️ Installation

  1. Clone the repository:

    git clone https://github.com/vaismand/Inception.git
    cd Inception
  2. Adjust your .env file as needed for environment variables.

  3. Run the setup:

    make
  4. 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.

🌐 Access

  • 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) maps yourlogin.42.fr to your VM IP

📚 What I Learned

  • 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

📜 License

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages