diff --git a/overrides/compose.backup-cron.yaml b/overrides/compose.backup-cron.yaml new file mode 100644 index 00000000..96bf4bf1 --- /dev/null +++ b/overrides/compose.backup-cron.yaml @@ -0,0 +1,14 @@ +services: + ofelia: + image: mcuadros/ofelia:latest + depends_on: + - scheduler + command: daemon --docker + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + + scheduler: + labels: + ofelia.enabled: "true" + ofelia.job-exec.datecron.schedule: "${BACKUP_CRONSTRING:-@every 6h}" + ofelia.job-exec.datecron.command: "bench --site all backup"