Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run crontab in addition to apache #25

Closed
andreas-gruenwald opened this issue Aug 4, 2020 · 3 comments
Closed

Run crontab in addition to apache #25

andreas-gruenwald opened this issue Aug 4, 2020 · 3 comments

Comments

@andreas-gruenwald
Copy link

What is best / recommended way to run cron jobs in addition to apache?
Is there a simple way to override the entrypoint, or to add a CMD?

Is this the related entrypoint?
https://github.com/pimcore/docker/blob/df45b64f4875a5cf1bbeabd91d1d5adc3954dfbb/apache-Dockerfile-block-2

My goal is to install cronjobs based on the value of an environment variable (e.g., CRONTAB_ENABLED=true).

@dpfaffenbauer
Copy link
Contributor

Add another container that runs cron.

@cutec-chris
Copy link

how ?
an separate container that runs cron and has /var/www/html mounted, will fail on running bin/console commands with 4 different errors. also adding links to db and redis dont resolves this. is an running apache nessesary to be able to run cron jobs ?

why does cron not run insode the php container when its needed to run pimcore ?
has somebody an working docker-compose with cron ?

@fashxp
Copy link
Member

fashxp commented Feb 17, 2022

see https://github.com/pimcore/demo/blob/10.x/docker-compose.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants