mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-15 23:02:03 -05:00
[PR #766] feat(nextcloud-aio): add nextcloud_cron service #11511
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Dokploy/templates/pull/766
Author: @tobiasdalhof
Created: 4/2/2026
Status: 🔄 Open
Base:
canary← Head:nextcloud-cron📝 Commits (1)
26f52d2feat(nextcloud-aio): add nextcloud_cron service📊 Changes
1 file changed (+16 additions, -1 deletions)
View changed files
📝
blueprints/nextcloud-aio/docker-compose.yml(+16 -1)📄 Description
Adds a dedicated
nextcloud_cronservice to the blueprint. This ensures background tasks run reliably every 5 minutes, resolving the "Ajax/webcron mode detected" warning and ensuring feeds/notifications stay up to date.Greptile Summary
This PR adds a dedicated
nextcloud_cronservice to thenextcloud-aioblueprint, resolving the "Ajax/webcron mode detected" warning by running Nextcloud's background jobs via the official/cron.shentrypoint on a 5-minute interval. The implementation correctly shares thenextcloud_datavolume and MySQL credentials with the main service.nextcloud_cronservice uses the samenextcloud:stableimage and shares thenextcloud_datavolume, which is the standard pattern for cron in the official Nextcloud Docker documentation.entrypoint: /cron.sh, which is included in the official Nextcloud image and handles the scheduling loop internally.depends_onfor the mainnextcloudservice, meaning it can start concurrently during first-run initialization; adding this dependency would improve startup ordering.Confidence Score: 4/5
This PR is safe to merge; the change is a well-known pattern for Nextcloud cron and introduces no breaking changes.
The implementation follows the standard Nextcloud Docker cron pattern (shared volume + /cron.sh entrypoint). The only concern is the absence of depends_on: nextcloud, which is a soft startup-ordering issue rather than a correctness bug — cron.sh retries every 5 minutes, so transient failures during first-run init self-resolve.
No files require special attention beyond the single depends_on suggestion in blueprints/nextcloud-aio/docker-compose.yml.
Reviews (1): Last reviewed commit: "feat(nextcloud-aio): add nextcloud_cron ..." | Re-trigger Greptile
(2/5) Greptile learns from your feedback when you react with thumbs up/down!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.