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)
- Docker >= 20.x
- Docker Compose >= 2.x
- GNU Make
- Bash
git clone https://github.com/yourname/inception-42.git
cd inception-42To properly prepare volumes and configuration paths:
bash dockerize-it.sh
⚠️ If you get permission errors, run the script with sudo:
sudo bash dockerize-it.shRun the following to build and start all services:
sudo makeThis will:
- Build the required Docker images
- Set up volumes and networks
- Launch services with Docker Compose
.
├── 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
After launching, you can access your WordPress website via:
https://127.0.0.1
✅ Make sure port
443is open and available.
To stop and remove all containers, networks, and volumes:
sudo make downTo 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.
- https://docs.docker.com/engine/
- https://docs.docker.com/engine/storage/
- https://docs.docker.com/engine/network/
- https://therahulsarkar.medium.com/understanding-docker-volumes-a-comprehensive-guide-46339aa9ac53
Feel free to use it