Skip to content

maynetee/inception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project has been created as part of the 42 curriculum by mteichma.

Description

Inception is a system administration project using Docker. The goal is to set up a small infrastructure with NGINX, WordPress, and MariaDB, each running in separate Docker containers.

Instructions

  1. Add the domain to your /etc/hosts:
127.0.0.1 mteichma.42.fr
  1. Run make at the root to build and start all services.

  2. Access WordPress at https://mteichma.42.fr

Other commands:

  • make down - stop services
  • make clean - stop and remove images
  • make fclean - full cleanup including data

Resources

Project Description

This project uses Docker to create an infrastructure with three services: NGINX (reverse proxy with TLS), WordPress (with php-fpm), and MariaDB (database). All services run in separate containers built from custom Dockerfiles.

Virtual Machines vs Docker

Virtual Machines include a full OS and hypervisor, making them heavier. Docker containers share the host OS kernel, making them lighter and faster to start.

Secrets vs Environment Variables

Environment variables are visible in container inspection and logs. Docker secrets are stored encrypted and mounted as files in containers, providing better security for sensitive data like passwords.

Docker Network vs Host Network

Docker network creates an isolated network for containers to communicate. Host network makes containers use the host's network directly, removing isolation but improving performance.

Docker Volumes vs Bind Mounts

Docker volumes are managed by Docker and stored in Docker's directory. Bind mounts link directly to host filesystem paths. Volumes are more portable, bind mounts give direct file access.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published