/42_inception

Setting up a Docker infrastructure composed of different services under specific rules (NGINX, WordPress and MariaDB))

Primary LanguageDockerfile

Inception

🌟 Overview

This project aims to provide a robust and scalable environment using Docker Compose. Each service is encapsulated within its own container, ensuring modularity and ease of management. The setup includes:

  • NGINX: Configured with TLSv1.2 or TLSv1.3 for secure connections.
  • WordPress: Running with PHP-FPM, excluding NGINX.
  • MariaDB: As the database service for WordPress.
  • Volumes: Persistent storage for WordPress files and database.
  • Custom Network: For seamless inter-container communication.

⚙️ Prerequisites

  • Docker
  • Docker Compose
  • Make

🚀 Installation

  1. Clone the repository
    git clone https://github.com/damachad/42_inception.git
    cd 42_inception
  2. Update .env file with your variables
    DOMAIN_NAME=login.42.fr
     # MDB SETUP
     DB_NAME=*******
     DB_HOST=*******
     DB_USER=*******
     DB_PWD=*******
     DB_R_PWD=*******
     
     # WP SETUP
     WP_ADMIN_N=*******
     WP_ADMIN_P=*******
     WP_TITLE=*******
     WP_ADMIN_E=*******
     
     # WP NEW USER SETUP
     WP_U_NAME=*******
     WP_U_PASS=*******
     WP_U_ROLE=*******
     WP_U_EMAIL=*******
     WP_URL=https://login.42.fr
    
  3. Run the Makefile
    make
  4. Access the domain name on your browser

🗒️ Notes

https://spicy-dirigible-2b6.notion.site/Inception-b663a32e459b46c3b32874241c08e582