Skip to content

Aziz018/inception-42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐳 INCEPTION – Docker-based Server Deployment

This project sets up a fully functional server environment using Docker and Docker Compose, deploying:

  • WordPress
  • MariaDB
  • Nginx with SSL
  • Optional additional services (can be removed for mandatory part)

📦 Requirements

  • Docker >= 20.x
  • Docker Compose >= 2.x
  • GNU Make
  • Bash

🚀 Getting Started

1. Clone the repository

git clone https://github.com/yourname/inception-42.git
cd inception-42

2. Create the necessary directories

To properly prepare volumes and configuration paths:

bash dockerize-it.sh

⚠️ If you get permission errors, run the script with sudo:

sudo bash dockerize-it.sh

3. Build and start the containers

Run the following to build and start all services:

sudo make

This will:

  • Build the required Docker images
  • Set up volumes and networks
  • Launch services with Docker Compose

🛠️ File Structure

.
├── docker-compose.yml
├── .env
├── Makefile
├── dockerize-it.sh
└── requirements/
    ├── nginx/
    │   ├── Dockerfile
    │   ├── conf/
    │   │   └── nginx.conf
    │   └── tools/
    │       └── init.sh
    ├── wordpress/
    │   ├── Dockerfile
    │   ├── tools/
    │   │   └── init.sh
    └── mariadb/
        ├── Dockerfile
        ├── conf/
        │   └── 50-server.cnf
        └── tools/
            └── init.sh

🌐 Access the Services

After launching, you can access your WordPress website via:

https://127.0.0.1

✅ Make sure port 443 is open and available.


🧹 Clean Up

To stop and remove all containers, networks, and volumes:

sudo make down

Full Cleanup (fclean)

To completely wipe everything including:

  • Docker containers
  • Docker images
  • Docker volumes
  • Docker cache
  • Created directories (e.g., ~/data)
  • Build artifacts

Use:

sudo make fclean

⚠️ This is irreversible. It deletes all related Docker artifacts and host-side directories used by the project.


Resources

📄 License

Feel free to use it

About

This project aims to broaden your knowledge of system administration by using Docker. You will virtualize several Docker images, creating them in your new personal virtual machine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors