Skip to content

Soufiane2005-spec/docker-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🐳 Docker Project - Containerization Platform

πŸ‘¨β€πŸŽ“ Author

Soufiane Zaakour


πŸ“Œ Project Objective

Set up a Docker-based platform to deploy, manage, and orchestrate containers.


🧩 Project Tasks

  • Task 1: Docker Installation
  • Task 2: Nginx Deployment
  • Task 3: Custom Image, Volume, Network
  • Task 4: Docker Compose

βš™οΈ Task 1: Docker Installation

βœ”οΈ Description

Docker was installed on Ubuntu and configured correctly.

πŸ› οΈ Commands Used

sudo apt update
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
docker run hello-world

---
---

# βœ… πŸ”Ή Add this for TASK 2

```markdown
## 🌐 Task 2: Nginx Deployment

### βœ”οΈ Description
A web server was deployed using an Nginx container.

### πŸ› οΈ Commands Used
```bash
docker pull nginx
docker run -d -p 8080:80 nginx
docker ps
# 🧩 Task 3 β€” Docker Advanced Concepts

## 🎯 Objective
Master Docker image creation, volumes, and networking.

---

## 🟦 Part A β€” Custom Image
- Created Dockerfile
- Built custom Nginx image
- Ran container with custom HTML page

---

## 🟩 Part B β€” Volumes (Persistence)

### Verification
- Docker volume created: task3-volume
- Mounted inside container at /data
- Data stored inside container
- Data persisted after container restart

### Internal storage location
/var/lib/docker/volumes/task3-volume/_data

### Result
Persistence successfully verified βœ”

---

## 🟨 Part C β€” Networking

### Steps
- Created Docker network: task3-network
- Ran MySQL container in network
- Ran Nginx container in same network
- Verified communication using ping

### Result
Containers successfully communicated inside Docker network βœ”

---

## 🧠 Key Concepts Learned
- Docker images
- Docker volumes (data persistence)
- Docker networking (container communication)
- DNS inside Docker
## 🧩 Task 4 β€” Docker Compose

### Objective
Deploy multi-container application using Docker Compose.

### Services
- Nginx (web server)
- MySQL (database)

### Features
- Automatic container creation
- Shared network
- Persistent storage using volumes

### Commands used
- docker compose up -d
- docker compose down
- docker ps

### Result
Application successfully deployed with multiple containers βœ”
## πŸŽ“ Final Conclusion

This project demonstrates full Docker fundamentals:

βœ” Container creation and management  
βœ” Custom Docker images  
βœ” Data persistence using volumes  
βœ” Container networking  
βœ” Multi-container orchestration using Docker Compose  

## 🏁 Result
A complete Docker-based environment was successfully built and tested.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors