Fixed backups & added replica recovery
All checks were successful
Build and publish / Build Container (push) Successful in 1m22s

This commit is contained in:
2026-05-29 21:51:22 -04:00
parent e0933bede2
commit 2ed87ffdd6
4 changed files with 35 additions and 17 deletions

13
docker-compose.yml Normal file
View File

@@ -0,0 +1,13 @@
services:
db:
build: .
environment:
MONGO_INITDB_DATABASE: momentum
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: secret
BACKUP_CRON: "0 2 * * *"
BACKUP_RETENTION: "7"
BACKUP_DIR: /data/backups
volumes:
- data:/data/db
- backups:/data/backups