feat: Use container for the API service

This commit is contained in:
Lucàs
2024-12-19 11:25:29 +01:00
parent 735ab03d6e
commit 401978a0b4
88 changed files with 865 additions and 3642 deletions
+2
View File
@@ -0,0 +1,2 @@
data/
logs/
+15
View File
@@ -0,0 +1,15 @@
# mongod.conf
storage:
dbPath: /data/db
wiredTiger:
engineConfig:
cacheSizeGB: 2 # Ajuster selon la mémoire disponible (ex: 2 Go)
systemLog:
destination: file
logAppend: true
path: /data/db/mongodb.log
operationProfiling:
mode: slowOp
slowOpThresholdMs: 1000 # Considère une opération lente si elle dépasse 1 seconde
net:
bindIp: 0.0.0.0