generated from ztimson/template
Fixed backups & added replica recovery
All checks were successful
Build and publish / Build Container (push) Successful in 1m22s
All checks were successful
Build and publish / Build Container (push) Successful in 1m22s
This commit is contained in:
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user