From 5900f8e198221dd0c79234a2e5aed3fdb018e299 Mon Sep 17 00:00:00 2001 From: davralin <43001121+davralin@users.noreply.github.com> Date: Sat, 21 Dec 2024 23:53:39 +0100 Subject: doc(docker-cron): duplicate documentation from README to the official docs (#7127) --- docs/en/admins/08_FeedUpdates.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/en/admins/08_FeedUpdates.md b/docs/en/admins/08_FeedUpdates.md index 79c2bbea6..4b9ae196b 100644 --- a/docs/en/admins/08_FeedUpdates.md +++ b/docs/en/admins/08_FeedUpdates.md @@ -8,6 +8,20 @@ FreshRSS is updated by the `./app/actualize_script.php` script. Knowing this, we **Note:** If you cannot configure a local Cronjob, [see an alternative using online cron](../users/09_refreshing_feeds.md#online-cron). +## Cron inside the FreshRSS Docker image + +Easiest, built-in solution, also used already in the examples above +(but your Docker instance will have a second process in the background, without monitoring). +Just pass the environment variable `CRON_MIN` to your `docker run` command, +containing a valid cron minute definition such as `'13,43'` (recommended) or `'*/20'`. +Not passing the `CRON_MIN` environment variable – or setting it to empty string – will disable the cron daemon. + +```sh +docker run ... \ + -e 'CRON_MIN=13,43' \ + --name freshrss freshrss/freshrss +``` + ## Cron as a trigger You’ll need to check the Cron documentation for your specific distribution ([Debian/Ubuntu](https://help.ubuntu.com/community/CronHowto), [Red Hat/Fedora/CentOS](https://fedoraproject.org/wiki/Administration_Guide_Draft/Cron), [Slackware](https://docs.slackware.com/fr:slackbook:process_control?#cron), [Gentoo](https://wiki.gentoo.org/wiki/Cron), [Arch Linux](https://wiki.archlinux.org/index.php/Cron) …) to make sure you set the Cron job correctly. -- cgit v1.2.3