Created
October 20, 2017 18:00
-
-
Save c-lliope/25aa8e7d45ac3333b3a00cffa7b6cde9 to your computer and use it in GitHub Desktop.
Template for using `/etc/crontab` with `docker-compose`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL=/bin/bash | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin | |
MAILTO=root | |
# For details see man 4 crontabs | |
# Example of job definition: | |
# .---------------- minute (0 - 59) | |
# | .------------- hour (0 - 23) | |
# | | .---------- day of month (1 - 31) | |
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | |
# / / / / .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | |
#/ / / / / | |
# * * * * user-name command to be executed | |
0 0 * * * root cd /home/user/directory && ./bin/docker-compose run --rm service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment