2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-31 13:11:58 +00:00

feat: backup cron

This commit is contained in:
Revant Nandgaonkar 2024-12-22 14:29:14 +05:30
parent f2ea9a9d74
commit 32569fbef2

View File

@ -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"