2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-01-09 00:21:21 +00:00
frappe_docker/overrides/compose.backup-cron.yaml
2024-12-25 11:28:22 +05:30

16 lines
423 B
YAML

services:
cron:
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"
ofelia.job-exec.datecron.user: "frappe"