The Inception project is a part of the 1337 School curriculum. Its main goal is to teach students how to use Docker to create a secure and scalable infrastructure. Students learn to:
- Use Docker: Understand containerization to run applications consistently across environments.
- Set Up Multi-Service Systems: Deploy services like WordPress and databases that work together.
- Automate Infrastructure: Use Docker Compose to manage applications with configuration files.
Docker is a platform that packages applications and their dependencies into containers, ensuring they run the same way everywhere.
- Images: Blueprints for creating containers.
- Containers: Isolated environments running applications.
- Dockerfile: Instructions to build images.
- Docker Compose: A tool to manage multiple containers in one setup (
docker-compose.yml).
- Docker installed on your system
- Docker Compose installed on your system
The project includes a Makefile to streamline usage. Below are the available commands:
Starts the Docker containers using the docker-compose.yml file located in srcs/.
Usage:
make upStops and removes the containers, including volumes and orphan containers.
Usage:
make downCreates necessary directories for WordPress and the database, then builds the Docker images.
Usage:
make buildproject_root/
├── Makefile
├── srcs/
│ └── docker-compose.yml
├── /home/belguabd/data/
│ ├── wp/
│ └── db/
- Clone the repository:
git clone <repository_url> cd <repository_name>
- Build the project:
make build
- Start the containers:
make up
- Stop and clean up:
make down