aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar davralin <43001121+davralin@users.noreply.github.com> 2024-12-21 23:53:39 +0100
committerGravatar GitHub <noreply@github.com> 2024-12-21 23:53:39 +0100
commit5900f8e198221dd0c79234a2e5aed3fdb018e299 (patch)
tree9f2e57625b840006ef68fe8205d513c018a10d68
parent9b06206737dcf22a30927af98c6df414e932d320 (diff)
doc(docker-cron): duplicate documentation from README to the official docs (#7127)
-rw-r--r--docs/en/admins/08_FeedUpdates.md14
1 files changed, 14 insertions, 0 deletions
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.