M44: harden release integrity and assurance
This commit is contained in:
+6
-1
@@ -47,6 +47,7 @@ services:
|
||||
BACKUP_INTERVAL_SECONDS: ${BACKUP_INTERVAL_SECONDS:-86400}
|
||||
BACKUP_RETENTION_DAYS: ${BACKUP_RETENTION_DAYS:-30}
|
||||
BACKUP_MINIMUM_COPIES: ${BACKUP_MINIMUM_COPIES:-7}
|
||||
BACKUP_RESTORE_DRILL_INTERVAL_SECONDS: ${BACKUP_RESTORE_DRILL_INTERVAL_SECONDS:-604800}
|
||||
command: ["/opt/mobilityops/scheduled-backup.sh"]
|
||||
volumes:
|
||||
- ./backups/postgres:/backups
|
||||
@@ -56,7 +57,11 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "find /backups/latest-success -mmin -1560 -print -quit | grep -q ."]
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"find /backups/latest-success -mmin -1560 -print -quit | grep -q . && find /backups/latest-restore-drill -mmin -11520 -print -quit | grep -q .",
|
||||
]
|
||||
interval: 30m
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user