69 lines
1.2 KiB
Markdown
69 lines
1.2 KiB
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 (PostgreSQL)
|
|
- Mongo Express (DB UI)
|
|
|
|
---
|
|
|
|
## 🏗️ Architecture
|
|
Browser → Frontend → Backend → PostgreSQL
|
|
|
|
---
|
|
|
|
## ⚙️ Technologies Used
|
|
- Docker
|
|
- Docker Compose
|
|
- Node.js
|
|
- PostgreSQL
|
|
- Nginx
|
|
|
|
---
|
|
|
|
## 📦 Services and Ports
|
|
|
|
| Service | Port |
|
|
|----------------|------|
|
|
| Frontend | 8080 |
|
|
| Backend | 3000 |
|
|
| PostgreSQL | 27017 |
|
|
| Mongo Express | 8081 |
|
|
|
|
---
|
|
|
|
## 🛠️ Setup
|
|
|
|
### Prepare
|
|
./prepare-app.sh
|
|
|
|
### Start
|
|
./start-app.sh
|
|
|
|
### Stop
|
|
./stop-app.sh
|
|
|
|
### Remove
|
|
./remove-app.sh
|
|
|
|
---
|
|
|
|
## 💾 Persistence
|
|
PostgreSQL uses Docker volume (mongo-data), so data after restart.
|
|
|
|
---
|
|
|
|
## Assistance Acknowledgment
|
|
This project was developed with the assistance of AI tools (such as ChatGPT) for guidance on concepts, debugging, and structuring the implementation.
|
|
|
|
All design decisions, implementation, and understanding of the system were carried out by the author.
|
|
|
|
---
|
|
|
|
## 👨💻 Author
|
|
Sabareesan
|