My problem is that I need to run the Drupal cron for some websites on the development servers (run periodic imports or reindex the search_api for example).
I have tried to execute the cron in several ways, but I always end up getting the same fault.
After researching a few hours, I have seen that people who use Alpine say they use the root user (which I don't think is the best idea)
My problem is that I need to run the Drupal cron for some websites on the development servers (run periodic imports or reindex the search_api for example).
I have tried to execute the cron in several ways, but I always end up getting the same fault. After researching a few hours, I have seen that people who use Alpine say they use the root user (which I don't think is the best idea)
I have seen that you delete the root crontab, and only leave the user www-data. I think the problem comes from here, since drush should always be run as user 1000 (wodby), right? https://github.com/wodby/php/blob/2408549b2bde7574be8e8982882b5b4a6e7d8116/7/Dockerfile#L301
A possible solution would be to have both volumes:
My docker-compose:
My crontab:
I just want to have the cron running, and I'm starting with docker, maybe I'm wrong with the reason why it doesn't work. Any other idea?