Install FreshRSS with Docker: 6 Easy Steps, Avoid Errors

To install FreshRSS with Docker you start the official freshrss/freshrss image, keep its data in a volume, and set one environment variable so that feeds refresh by themselves. The old version of this post used a Compose file with a bind mount and no refresh setting. This rewrite runs both versions: the old file first, to see what it really does, and then the way the FreshRSS Docker README (read on 2026-11-01) describes.

Lab: rootless Podman 5.8 with podman-compose 1.6 on Fedora, image freshrss/freshrss:latest (FreshRSS 1.30.4, 261 MB). Podman takes the same options as Docker, so the docker run lines below are the same commands. Where rootless Podman and Docker behave differently, the text says so.

What the old Compose file does when you install FreshRSS with Docker

The old file published port 8080, set TZ=UTC, mounted ./data and used an external network. After creating the network and running the Compose file, the container was up, and curl http://localhost:8080/ answered 302. The page at /i/ was the installation wizard ("Installation · FreshRSS: step 1"). So the first part works. Two problems appeared.

  • Permissions. The log showed PHP Warning: touch(): Unable to create file /var/www/FreshRSS/data/index.html because Permission denied. Inside the container the folder was owned by root, and Apache runs as www-data (uid 33, the lab showed uid=33(www-data)). The old advice sudo chown -R 1000:1000 ./data would not match this user. Use a named volume as in the next section, or give ./data to the user that runs Apache in your setup.
  • No automatic refresh. crontab -l inside the container answered no crontab for root. According to the README, CRON_MIN is disabled by default, so without it FreshRSS never fetches new articles unless you call the refresh yourself.
Install FreshRSS with Docker: the old compose file shows a permission warning and no crontab, the README command creates the cron entry
The old Compose file against the README command when you install FreshRSS with Docker.

Install FreshRSS with Docker the README way

To install FreshRSS with Docker the supported way, note that the README example uses named volumes for the data and for extensions, a restart policy, a log size limit, and CRON_MIN. This is the command that was run, with a network added so that other containers can reach it:

docker run -d --restart unless-stopped --log-opt max-size=10m \
  -p 8080:80 \
  -e TZ=Europe/Paris \
  -e CRON_MIN=1,31 \
  -v freshrss_data:/var/www/FreshRSS/data \
  -v freshrss_extensions:/var/www/FreshRSS/extensions \
  --name freshrss freshrss/freshrss

With CRON_MIN=1,31 the container had the cron line 1,31 * * * * ... php /var/www/FreshRSS/app/actualize_script.php, so feeds refresh at minutes 1 and 31 of every hour. Opening http://localhost:8080/i/ after this step to install FreshRSS with Docker showed the same installation wizard, now with a writable data folder. You do not need to create a network or install Docker Compose for this.

Finish the install in the browser or on the command line

The installation wizard asks for the language, the database (SQLite is enough for one user), the first user and the authentication method. If you prefer the command line, the README gives the two commands. The lab ran them with explicit values:

docker exec --user www-data freshrss cli/do-install.php --default-user labuser \
  --auth-type form --db-type sqlite --base-url http://localhost:8080 --language en
docker exec --user www-data freshrss cli/create-user.php --user labuser --password 'a-long-password' --language en

Both commands ended with reminders (create the default user, refresh the feeds, re-apply access rights). After that /i/ returned 200 and the page title was "Login · FreshRSS". Run the commands with --user www-data; otherwise the files may be created by root and the web server cannot write them.

Add feeds, and a limit you may meet

An OPML file with one feed pointing to another container was imported with cli/import-for-user.php, and cli/actualize-user.php --user labuser refreshed it. The refresh log said URL is not allowed to be resolved: http://feedsrv/feed.xml and, for the icon, the host's IP is not in the allowlist. In this version FreshRSS does not fetch feeds from private addresses by default, which looks like a protection against requests to internal hosts. If you subscribe to a feed on your own network, read the FreshRSS documentation on this setting before you change it.

Backup and update after you install FreshRSS with Docker

The old post archived ./data with tar. With a named volume, archive the volume through a helper container. On the SELinux host of the lab the bind mount needed the :Z flag; without it tar reported Permission denied:

docker run --rm -v freshrss_data:/data:ro -v "$PWD":/backup alpine tar czf /backup/freshrss-backup.tgz -C /data .

The archive (129488 bytes) listed users/labuser/db.sqlite and the user config. To update, pull the new image, remove the container and start it again with the same volumes, as the README says: "updating FreshRSS only means running a newer image with the same volumes". After the lab update, cli/user-info.php --user labuser still listed the user and /i/ answered 200.

Check that the FreshRSS install works

Three quick checks tell you if the setup is healthy. First, docker ps must show the container as Up with 0.0.0.0:8080->80/tcp. Second, docker exec freshrss crontab -l must print the actualize_script.php line; if it answers "no crontab", the variable CRON_MIN is missing. Third, docker exec --user www-data freshrss cli/user-info.php --user labuser must list the user and the number of feeds and articles. Use these three checks each time you install FreshRSS with Docker on a new host, and again after every update. They take less than a minute and catch the two problems found in the old Compose file.

HTTPS and common mistakes when you install FreshRSS with Docker

The old post put nginx and Let's Encrypt in front of the container. That part was not tested here. The generic proxy headers are explained in the nginx and Apache ProxyPassReverse post, and a hardened nginx setup is in 7 tips for securing nginx with TLS. Mistakes to avoid when you install FreshRSS with Docker:

  • Forgetting CRON_MIN, so the reader never updates.
  • A bind mount that the web server user cannot write.
  • Running the CLI scripts as root instead of www-data.
  • Updating without the same volumes, which starts an empty installation.

FAQ

Do I need Docker Compose to install FreshRSS with Docker? No. The README gives a plain docker run command and a Compose section for people who want a database container. The old file used version: '3.3'; it ran under podman-compose, and the Compose Specification version tag was not tested.

Does it work with mobile apps? The old post named FeedMe and Reeder through the Google Reader API. That was not tested here; enable the API in the FreshRSS settings and check the app's documentation.

Comments

Popular posts from this blog

How to Play Minecraft Bedrock Edition on Linux: A Comprehensive Guide for Tech Professionals

Linux desktop frozen? My 5 go-to tricks to try - before forcing a hard reboot

The Ultimate Guide: How to Set Up DXVK in Wine on Linux for Enhanced Gaming Performance