Skip to content

Docker Standalone's Cron Notes #2184

Closed Answered by davidpiccinini
davidpiccinini asked this question in Q&A
Discussion options

You must be logged in to vote

The fastest and clean way to resolve without have to rebuild any images or modify nothing was add this to docker compose:

command: bash -c 'echo "$$(cat /etc/cron.d/lhc)" >> /etc/crontab && cron -f'

We adds this line for docker compose's services "php-cronjob" and "php-resque"

Now all works and runs cron jobs as expected!

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@davidpiccinini
Comment options

@remdex
Comment options

@davidpiccinini
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by davidpiccinini
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants