Skip to content

How to Deploy FreshRSS on a VPS

Updated Nov 2026

verified on Ubuntu 26.04 · Nov 2026
We earn commissions when you shop through the links below. Full disclosure →

Self-host FreshRSS on a VPS with a pinned Docker image behind Caddy HTTPS, install it from the command line, enable feed refresh, and back up and restore it.

Before you start
  • A VPS with 512 MB+ RAM (the catalog floor is 256 MB)
  • A fresh Ubuntu 24.04 or 26.04 server with root/sudo SSH access
  • A domain or subdomain you can point at the server
Need a box for this guide? Kamatera's free tier lets you spin one up now.Start free on Kamatera → (opens in new tab)

What FreshRSS is

FreshRSS is a self-hosted RSS and Atom aggregator with multiple users, extensions, web scraping for sites without feeds, and a Google-Reader-compatible API for mobile apps. It is AGPL-3.0 and written in PHP. It is one of the self-hosted Feedly alternatives. This guide uses its built-in SQLite storage, so there is no separate database server.

You end up with FreshRSS on HTTPS, installed from the command line so the web installer is never exposed, with scheduled feed refresh and a restored backup.

Server sizing

The catalog floor is 256 MB of RAM; on the catalog's test box FreshRSS idled at 16 MB and used about 360 MB of disk. Refresh runs use more than idle, and the database grows with the number of feeds and how long you keep articles.

For choosing a provider and tier, see Best VPS for self-hosting.

Prepare the server

Update the system and install the few tools this guide uses:

sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y curl openssl ufw dnsutils

Working as root? Create a sudo user first and continue as that user:

adduser deploy
usermod -aG sudo deploy

Open SSH and the two ports the reverse proxy needs:

sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw --force enable

The Compose file below publishes FreshRSS on 127.0.0.1 only, leaving Caddy as the public door. Docker publishes container ports around ufw, so a port bound to all interfaces would be reachable from the internet whatever the firewall says.

Where to host itaffiliate disclosure
Hetzner Cloudrun it on
2 vCPU · 4 GB RAM · 80 GB SSD · $23.59/mo
Get Hetzner Cloud (opens in new tab)
Kamaterafree trial
1 vCPU · 1 GB RAM · 20 GB SSD · $4.00/mo
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
1 vCPU · 1 GB RAM · 25 GB SSD · $6.00/mo
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Install Docker

The convenience script installs Docker Engine and the Compose plugin (Docker and Compose on Ubuntu explains the details):

command -v docker >/dev/null || curl -fsSL https://get.docker.com | sudo sh
sudo docker compose version

Install FreshRSS

Set your hostname and time zone (replace the examples). FreshRSS usernames must be alphanumeric:

mkdir -p ~/freshrss && cd ~/freshrss
if [ ! -f .env ]; then
  ( umask 077
    {
      echo "DOMAIN=rss.example.com"
      echo "TZ=Etc/UTC"
      echo "ADMIN_USER=admin"
      echo "ADMIN_PASSWORD=$(openssl rand -hex 12)"
      echo "API_PASSWORD=$(openssl rand -hex 12)"
    } > .env )
fi
grep -c -E '^(DOMAIN|TZ|ADMIN_USER|ADMIN_PASSWORD|API_PASSWORD)=' .env

Two settings matter. CRON_MIN turns on the built-in cron job; without it feeds never refresh on their own. TRUSTED_PROXY tells FreshRSS to believe the forwarded headers coming from the Docker network, where Caddy runs:

cd ~/freshrss
cat > docker-compose.yml <<'EOF'
services:
  freshrss:
    image: freshrss/freshrss:1.31.0
    restart: unless-stopped
    logging:
      options:
        max-size: 10m
    environment:
      TZ: ${TZ}
      CRON_MIN: "1,31"
      TRUSTED_PROXY: 172.16.0.0/12 192.168.0.0/16
    ports: ["127.0.0.1:8080:80"]
    volumes:
      - data:/var/www/FreshRSS/data
      - extensions:/var/www/FreshRSS/extensions
  caddy:
    image: caddy:2
    restart: always
    ports: ["80:80", "443:443"]
    environment:
      DOMAIN: ${DOMAIN}
    volumes: ["./Caddyfile:/etc/caddy/Caddyfile:ro", "caddy_data:/data"]
    depends_on: [freshrss]
volumes:
  data:
    name: freshrss_data
  extensions:
    name: freshrss_extensions
  caddy_data:
EOF
cat > Caddyfile <<'EOF'
{$DOMAIN} {
    encode zstd gzip
    reverse_proxy freshrss:80
}
EOF

Install and create your user

Start FreshRSS alone, run its command-line installer and create the account before Caddy publishes anything. Commands run as www-data, the web server's user, so file ownership stays right:

cd ~/freshrss
sudo docker compose up -d freshrss
for i in $(seq 1 40); do
  curl -s -o /dev/null http://127.0.0.1:8080/ && break
  sleep 2
done
. ./.env
sudo docker compose exec -T --user www-data freshrss cli/do-install.php \
  --default-user "$ADMIN_USER" --auth-type form --base-url "https://$DOMAIN" --api-enabled
sudo docker compose exec -T --user www-data freshrss cli/create-user.php \
  --user "$ADMIN_USER" --password "$ADMIN_PASSWORD" --api-password "$API_PASSWORD"
sudo docker compose exec -T --user www-data freshrss cli/list-users.php

Command-line arguments are visible to other users on the host while the command runs, so do this on a server only you can log into. Then start Caddy:

cd ~/freshrss
sudo docker compose up -d
sudo docker compose ps

HTTPS and domain

Create an A record for your hostname (this guide uses rss.example.com) pointing at the server's public IP, and check that it resolves:

dig +short rss.example.com

Caddy requests the certificate once the name resolves and renews it by itself (see Automatic HTTPS with Caddy). Wait for it, with a bounded loop so a broken setup fails instead of hanging:

cd ~/freshrss
. ./.env
out=000
for i in $(seq 1 40); do
  out=$(curl -s -o /dev/null -w '%{http_code} %{ssl_verify_result}' "https://$DOMAIN/i/")
  [ "$out" = "200 0" ] && break
  sleep 5
done
echo "HTTPS status and certificate check: $out"
[ "$out" = "200 0" ]

200 0 means the page answered and the certificate verified.

The API password (separate from your login password) is what mobile apps use. Signing in with it proves the account and the API work over HTTPS:

cd ~/freshrss
. ./.env
curl -s "https://$DOMAIN/api/greader.php/accounts/ClientLogin" \
  --data-urlencode "Email=$ADMIN_USER" --data-urlencode "Passwd=$API_PASSWORD" | grep -c '^Auth='

It should print 1. Open https://rss.example.com, sign in with the password from ~/freshrss/.env, add your feeds, or import an OPML file. Refresh once from the command line to confirm the server can reach them:

cd ~/freshrss
. ./.env
sudo docker compose exec -T --user www-data freshrss cli/actualize-user.php --user "$ADMIN_USER"

Backups

FreshRSS keeps users, settings and (with SQLite) all articles in the data volume, and third-party extensions in extensions. Stop the container, so the SQLite files are not copied mid-write, and archive both:

cd ~/freshrss
sudo docker compose stop freshrss
( umask 077
  sudo docker run --rm -v freshrss_data:/data:ro -v freshrss_extensions:/extensions:ro alpine:3 \
    tar czf - data extensions > ~/freshrss-volumes-$(date +%F).tar.gz
  tar czf ~/freshrss-config-$(date +%F).tar.gz docker-compose.yml Caddyfile .env )
sudo docker compose start freshrss
tar tzf ~/freshrss-volumes-$(date +%F).tar.gz | grep -E '(db.sqlite|config.php)$'

Copy both files off the server. If you move to PostgreSQL or MySQL later, the database also needs its own dump.

Restore

This replaces both volumes with the archive. Rehearse it once right after a backup. Set A to the archive you want; the block checks it first and stops at the first error:

(
  set -e
  cd ~/freshrss
  A=~/freshrss-volumes-$(date +%F).tar.gz
  tar tzf "$A" >/dev/null
  sudo docker compose down
  sudo docker volume rm -f freshrss_data freshrss_extensions
  for v in data extensions; do
    sudo docker volume create --label com.docker.compose.project=freshrss --label com.docker.compose.volume=$v freshrss_$v >/dev/null
  done
  sudo docker run --rm -i -v freshrss_data:/data -v freshrss_extensions:/extensions alpine:3 tar xzf - < "$A"
  sudo docker compose up -d
  for i in $(seq 1 40); do
    curl -s -o /dev/null http://127.0.0.1:8080/ && break
    sleep 2
  done
  . ./.env
  sudo docker compose exec -T --user www-data freshrss cli/list-users.php
  curl -s http://127.0.0.1:8080/api/greader.php/accounts/ClientLogin \
    --data-urlencode "Email=$ADMIN_USER" --data-urlencode "Passwd=$API_PASSWORD" | grep -c '^Auth='
)

Your username and a 1 mean the account came back from the archive. On a new server, unpack the config archive into ~/freshrss first, then run the same commands.

Upgrades

Read the release notes, take a backup, change the freshrss/freshrss tag in docker-compose.yml, then:

cd ~/freshrss
sudo docker compose pull
sudo docker compose up -d
sudo docker compose logs --tail 20 freshrss

Pin a version number; the edge tag is the rolling development branch.

Troubleshooting

Feeds never update. Check that CRON_MIN is set and not empty.

Login loops or wrong http:// links. The base URL must be your HTTPS address and TRUSTED_PROXY must cover the Docker network.

A feed on your own network is refused. FreshRSS blocks requests to internal addresses by default; allow specific hosts with INTERNAL_HOST_ALLOWLIST.

No certificate. Check the DNS record and that inbound 80 and 443 are open at your provider too.

Verification and next steps

You are done when https://rss.example.com loads with a valid certificate, you can sign in, feeds refresh, and you have restored a backup once. See the FreshRSS entry.

Next steps

Common questions

How long does it take to follow "How to Deploy FreshRSS on a VPS"?

We estimate about 20 minutes of hands-on time for "How to Deploy FreshRSS on a VPS"; this is an editorial estimate, not a measurement.

Was the "How to Deploy FreshRSS on a VPS" guide tested?

The "How to Deploy FreshRSS on a VPS" guide was verified end-to-end on Ubuntu 26.04 (Nov 2026).

Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.