Hello,
I am using the “frappe_docker” to build my image which is the base for my Frappe docker setup.
As the container does not have a “crontab” the Ofelia setup is introduced.
Yet, it is not working in my case as it should be.
Here are the details:
overrides/compose.backup-cron.yaml
is having:
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 --with-files --compress"
ofelia.job-exec.datecron.user: "frappe"
The schedule variable is set as:
BACKUP_CRONSTRING=“0 22 * * *”
Both scheduler and cron containers are running.
Yet, there are backups happening every hour.
I checked the “crontab” for each user in the host system and there are no jobs with hourly schedule.
What is the problem?