File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments