Created
August 1, 2017 19:39
-
-
Save ddm/fb2d9e5a5862d3bb6831ee155bbb3d6d to your computer and use it in GitHub Desktop.
Alpine cron
This file contains 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
version: "3" | |
services: | |
cron: | |
image: alpine | |
command: sh -c "echo '* * * * * task > /proc/1/fd/1 2> /proc/1/fd/2' | crontab - && crond -f" | |
volumes: | |
- ./task.sh:/usr/local/bin/task:ro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment