62 lines
891 B
Markdown
62 lines
891 B
Markdown
# 🚀 Docker Multi-Container Web Application
|
|
|
|
## 📌 Project Overview
|
|
This project demonstrates the deployment of a multi-container web application using Docker.
|
|
|
|
It includes:
|
|
- Frontend (Nginx)
|
|
- Backend (Node.js)
|
|
- Database (MongoDB)
|
|
- Mongo Express (DB UI)
|
|
|
|
---
|
|
|
|
## 🏗️ Architecture
|
|
Browser → Frontend → Backend → MongoDB
|
|
|
|
---
|
|
|
|
## ⚙️ Technologies Used
|
|
- Docker
|
|
- Docker Compose
|
|
- Node.js
|
|
- MongoDB
|
|
- Nginx
|
|
|
|
---
|
|
|
|
## 📦 Services and Ports
|
|
|
|
| Service | Port |
|
|
|----------------|------|
|
|
| Frontend | 8080 |
|
|
| Backend | 3000 |
|
|
| MongoDB | 27017 |
|
|
| Mongo Express | 8081 |
|
|
|
|
---
|
|
|
|
## 🛠️ Setup
|
|
|
|
### Prepare
|
|
./prepare-app.sh
|
|
|
|
### Start
|
|
./start-app.sh
|
|
|
|
### Stop
|
|
./stop-app.sh
|
|
|
|
### Remove
|
|
./remove-app.sh
|
|
|
|
---
|
|
|
|
## 💾 Persistence
|
|
MongoDB uses Docker volume (mongo-data), so data is محفوظ after restart.
|
|
|
|
---
|
|
|
|
## 👨💻 Author
|
|
Sabareesan
|