# Deploy Multiple Containers Using Docker Compose 🐳📦

## Introduction

Real applications are not made of one container.  
They usually have:

* Frontend
    
* Backend
    
* Database
    

In this blog, we’ll deploy **multiple containers together**.

---

## 🧩 Project Overview

We will deploy:

* Nginx (Web)
    
* Redis (Database)
    

---

## 🛠️ Create `docker-compose.yml`

```plaintext
version: "3"
services:
  web:
    image: nginx
    ports:
      - "80:80"

  redis:
    image: redis
```

---

## ▶️ Run All Containers

```plaintext
docker-compose up -d
```

---

## 📊 Check Running Containers

```plaintext
docker ps
```

---

## 🛑 Stop Everything

```plaintext
docker-compose down
```

---

## 🧠 Why This Matters

* Microservices architecture
    
* Easy scaling
    
* Real-world deployment style
    

---

## 🎯 Conclusion

Docker Compose is the easiest way to deploy **multi-container applications**.
