From 32569fbef2c2cb9e137021711bc6c56a3fb53d70 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Sun, 22 Dec 2024 14:29:14 +0530 Subject: [PATCH] feat: backup cron --- overrides/compose.backup-cron.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 overrides/compose.backup-cron.yaml diff --git a/overrides/compose.backup-cron.yaml b/overrides/compose.backup-cron.yaml new file mode 100644 index 000000000..96bf4bf1c --- /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"