Skip to content

Commit

Permalink
Merge pull request #1532 from revant/cron
Browse files Browse the repository at this point in the history
feat: backup cron
  • Loading branch information
revant authored Dec 22, 2024
2 parents f2ea9a9 + 32569fb commit a9c7659
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions overrides/compose.backup-cron.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a9c7659

Please sign in to comment.