Skip to content

Commit

Permalink
Add backup service to compose
Browse files Browse the repository at this point in the history
  • Loading branch information
vpsx committed Sep 26, 2024
1 parent 4ca4e52 commit eba5578
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ services:
volumes:
- intact-backend-mongo-data-staging:/data/db

backup:
image: offen/docker-volume-backup:v2.43.0
restart: always
environment:
BACKUP_CRON_EXPRESSION: "50 7 * * *"
BACKUP_RETENTION_DAYS: 120
AWS_S3_BUCKET_NAME: sail-data-backups
AWS_S3_PATH: intact-backend-mongo-data-staging
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
volumes:
- intact-backend-mongo-data-staging:/backup/intact-backend-mongo-data-staging:ro

volumes:
intact-backend-mongo-data-staging:
external: true

0 comments on commit eba5578

Please sign in to comment.