Skip to content

nasqnik/Inception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inception — Dockerized Web Stack

A containerized web stack with NGINX, WordPress (PHP-FPM), and MariaDB orchestrated via Docker Compose. It focuses on HTTPS-only access, service isolation, secrets management, and persistent storage.

Stack

  • NGINX (reverse proxy + TLS)
  • WordPress (application)
  • MariaDB (database)
  • Docker Compose (orchestration)

Architecture

Architecture diagram

Flow: Client -> NGINX (HTTPS) -> WordPress -> MariaDB

Run

Prerequisites

  • Docker
  • Docker Compose
  • Make

Start

make

Or:

docker compose -f srcs/docker-compose.yml --env-file srcs/.env up --build

Expected result

  1. Add host mapping in /etc/hosts (example: 127.0.0.1 anikitin.42.fr).
  2. Open https://anikitin.42.fr.
  3. Accept the self-signed certificate warning if prompted.
  4. The WordPress page should load.

Useful commands

make         # build and start
make down    # stop containers
make logs    # stream logs
make clean   # remove containers/network/volumes
make fclean  # full cleanup (including images and host data)

Highlights

  • HTTPS-only entry point (port 443)
  • Credentials handled with Docker secrets
  • Named volumes for WordPress and MariaDB persistence
  • Isolated internal Docker network for inter-service communication

About

Containerized web stack using Docker Compose: NGINX reverse proxy, WordPress, and MariaDB

Topics

Resources

Stars

Watchers

Forks

Contributors