/Inception

Dockerized WordPress with Nginx and MariaDB

Primary LanguageShell

Dockerized WordPress with Nginx and MariaDB

This project sets up a WordPress website using Docker, with Nginx as the web server and MariaDB as the database. The services are defined and managed using Docker Compose.

Project Structure

The project is structured as follows:

  • inception/: The main directory containing all the Docker-related files.
    • Makefile: Contains commands for managing the Docker Compose setup.
    • srcs/: Contains the Docker Compose file and the service requirements.
      • docker-compose.yaml: Defines how the services are built, run, and interact.
      • requirements/: Contains the configuration, Dockerfile, and tools for each service.
        • mariadb/: MariaDB service.
          • conf/my.cnf: MariaDB configuration file.
          • dockerfile: Dockerfile for building the MariaDB image.
          • tools/init.sh: Initialization script for MariaDB.
        • nginx/: Nginx service.
          • conf/nginx.conf: Nginx configuration file.
          • dockerfile: Dockerfile for building the Nginx image.
          • tools/index.html: Default page served by Nginx.
        • wordpress/: WordPress service.
          • conf/www.conf: PHP-FPM configuration file.
          • dockerfile: Dockerfile for building the WordPress image.
          • tools/init_wordpress.sh: Initialization script for WordPress.

Tech Stack

sleepyNajlio/Inception is built on the following main stack:

Full tech stack here

Getting Started

  1. Clone the repository:
git clone https://github.com/sleepyNajlio/Inception.git
  1. Navigate to the inception directory:
cd inception
  1. Build the Docker images:
make build
  1. Start the services:
make up
  1. Access the WordPress site at: localhost:443