Skip to content

Instantly share code, notes, and snippets.

@ddm
Created August 1, 2017 19:39
Show Gist options
  • Save ddm/fb2d9e5a5862d3bb6831ee155bbb3d6d to your computer and use it in GitHub Desktop.
Save ddm/fb2d9e5a5862d3bb6831ee155bbb3d6d to your computer and use it in GitHub Desktop.
Alpine cron
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