You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i've found a quick workaround, just point the HOME_DIR variable to a tmpfs mount and on every container restart the folder will clear out and regenerate the latest crontabs
in docker-compose just modify like this:
....
environment:
HOME_DIR: "/crontab" # <-- this can be (almost) anything but it needs to also match the config.json/yml path below
volumes:
- type: tmpfs
target: /crontab
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "/opt/crontab/config.yml:/crontab/config.yml:rw" # <-- important for this to be AFTER the tmpfs mount
....
Activity
peterbuga commentedon May 2, 2023
@psyciknz this was buggering me too
i've found a quick workaround, just point the
HOME_DIRvariable to a tmpfs mount and on every container restart the folder will clear out and regenerate the latest crontabsin docker-compose just modify like this: