Skip to content

Instantly share code, notes, and snippets.

@amr3k
Created January 30, 2023 05:48
Show Gist options
  • Save amr3k/259a2f5f31efadf09e35fe9715ab9d6d to your computer and use it in GitHub Desktop.
Save amr3k/259a2f5f31efadf09e35fe9715ab9d6d to your computer and use it in GitHub Desktop.
[SOLVED] Nextcloud cron job issue with docker

If you setup nextcloud with docker-compose, and you find a warning with the background jobs not being executed for x days, just add this cron job to your host os.

You can replace nextcloud with your nextcloud container name, you can check it with docker ps

*/5 * * * * docker exec -u www-data nextcloud php cron.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment