Run a Nextcloud HTTP Cron task from a Docker container.
Nextcloud servers require to run "Background jobs", and by default it uses AJAX, which executes them each time a request by a client is performance. The performance of this method is poor, so it's recommended to use Cron or Webcron to launch one task, at least, once each 15 minutes. (Read more)
To keep the base Nextcloud container "clean", this Docker container launch a Webcron task periodically. A "Webcron task" is just a request to a Nextcloud endpoint (http://my-nextcloud-server/cron.php) that must be performed, at least, once each 15 minutes.
This container is based on the Alpine image, to keep it small. It execute a Shell script with a "while true" loop, which use Curl to request the Nextcloud Webcron endpoint and sleep for N seconds.
YOU MUST SET the Nextcloud Webcron endpoint through an env variable on the Docker Container. Additionally, you can customize the Webcron frequency time (by default 600 seconds = once request each 10 minutes).
Content type
Image
Digest
Size
5.6 MB
Last updated
over 5 years ago
docker pull sailman83/nextcloud_webcron