Skip to content

Commit 34380d3

Browse files
committed
Update README with MongoDB persistent storage configuration and optimization details
1 parent fa35cfa commit 34380d3

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,35 @@ Example:
203203
204204
---
205205

206+
207+
## 💾 Persistent Database & Storage Optimization
208+
209+
To ensure production reliability and prevent data loss, additional improvements were implemented in the infrastructure.
210+
211+
### 🔹 MongoDB Persistent Storage
212+
213+
Initially, MongoDB data was lost whenever Docker containers were restarted.
214+
To solve this, a **named Docker volume** was configured:
215+
216+
```yaml
217+
mongo:
218+
image: mongo
219+
container_name: mongo
220+
restart: always
221+
ports:
222+
- "27017:27017"
223+
volumes:
224+
- mongo-data:/data/db
225+
```
226+
---
206227
## 🔐 Security Considerations
207228
208229
✔ Docker containers isolated
209230
✔ MongoDB internal network
210231
✔ SSH secure access
211232
✔ Secrets managed using GitHub Actions
212233
✔ Reverse proxy architecture
213-
234+
---
214235
## 📸 Screenshots & Demonstration
215236
216237
### 🔹 1. Application UI – Cloud Deployment

0 commit comments

Comments
 (0)