Cron
You can use a specific container to run your Cron jobs:
servers:
cron:
hosts:
- 192.168.0.1
cmd:
bash -c "(env && cat config/crontab) | crontab - && cron -f"
This assumes that the Cron settings are stored in config/crontab
. Cron does not automatically propagate environment variables, the example above copies them into the crontab.