From 07e00c7681e5fd9e680cba75125b166b96a96198 Mon Sep 17 00:00:00 2001 From: Chris Francy Date: Sun, 24 Oct 2021 08:25:03 -0700 Subject: Docker: don't add crontab unless needed. (#3927) Adding the crontab as part of the image build makes it more complicated to add custom entries to the crontab. Adjusting the image and entrypoint to make it so that the crontab is only added when CRON_MIN is set simplifies having a custom crontab. --- Docker/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Docker/README.md') diff --git a/Docker/README.md b/Docker/README.md index 0f3591ba8..c5a6792e3 100644 --- a/Docker/README.md +++ b/Docker/README.md @@ -248,6 +248,21 @@ docker run -d --restart unless-stopped --log-opt max-size=10m \ cron -f ``` +#### For the Debian image (default) using a custom cron.d fragment + +This method gives you the most flexibility most flexiblity to +execute various freshrss cli commands. + +```sh +docker run -d --restart unless-stopped --log-opt max-size=10m \ + -v freshrss-data:/var/www/FreshRSS/data \ + -v freshrss-extensions:/var/www/FreshRSS/extensions \ + -v ./freshrss_crontab:/etc/cron.d/freshrss \ + --net freshrss-network \ + --name freshrss_cron freshrss/freshrss \ + cron -f +``` + #### For the Alpine image ```sh -- cgit v1.2.3