Inception is a System Administration project focused on Docker and containerization. It involves setting up a small infrastructure composed of different services using Docker containers.
- NGINX with TLSv1.2 or TLSv1.3 only
- WordPress + php-fpm (without NGINX)
- MariaDB (without NGINX)
- Custom Dockerfiles for each service
- Use Alpine or Debian (penultimate stable version)
- No ready-made Docker images (except Alpine/Debian)
- Two users in WordPress database (one administrator)
- NGINX as the only entrypoint (port 443, TLSv1.2 or TLSv1.3)
- Use of environment variables for sensitive data (.env file and Docker secrets)
More information about the project is in the subject.pdf
-
Install Docker and Docker Compose
-
Add the user to the docker group (to run docker commands without sudo and root mode)
- Clone the repository:
git clone https://github.com/frbeyer1/inception.git
- Navigate to the project directory:
cd inception
- edit the hosts file to acess the Wordpress website with frbeyer.42.fr
sudo nano /etc/hosts
paste in:
127.0.0.1 frbeyer.42.fr
- Build the images and launch:
make build
- Stop the containers:
make down
- Launch the containers:
make
- Stop and reaunch the containers:
make re
- Remove all containers and unused Docker data (partial)
make clean
- Forces deep cleanup of docker data, removes volumes and local data
make fclean
