How to Install Miniflux on a VPS with Docker: A Minimal, Distraction-Free RSS Reader
You follow a dozen sites — tech blogs, journals, project documentation, industry news. Every morning the ritual is the same: open them one by one, check whether anything new was published, close the tabs that turn out to be empty. You follow some of those sites through social media, but the algorithm decides for itself what shows up in your timeline, and the article you were actually waiting for often never arrives. Slowly, keeping up with the news stops being an enjoyable habit and starts feeling like a chore.
RSS solves this with an approach that is decades old and still works: the sites you follow publish a feed, an RSS reader fetches it, and you read everything in one place, ordered by time, with nothing hidden by an algorithm. Miniflux is an RSS reader deliberately built to be minimal — written in Go, with a clean interface and no features you do not need — and it needs PostgreSQL as its database. This guide installs it on a VPS with Docker Compose, using the official example from the Miniflux documentation, then secures it behind Nginx with HTTPS.
Prerequisites
- A Linux VPS with Docker and Docker Compose v2 installed, plus SSH access with
sudorights. - A domain already pointing at the VPS IP if you want HTTPS access, for example
rss.example.com. This guide uses that domain as an example; replace it with your own. Without a domain, the installation can still be tested athttp://YOUR-VPS-IP:8080. - Port 8080 on the host not used by another application — this is the port Miniflux uses in this example.
Check Docker and Compose first:
docker --version
docker compose version
Expected result: both commands print version numbers without errors. If Docker is not installed yet, install it from Docker's official repository for your distribution before continuing.
Step 1: create a working folder
Create a folder at /opt/miniflux, then move into it:
sudo mkdir -p /opt/miniflux
cd /opt/miniflux
Everything for this stack — the Compose file and the database data — will live in this folder. The PostgreSQL data itself is stored in a Docker volume named miniflux-db, so your feeds and account survive container removal and recreation.
Step 2: write the Compose file
Create a file named compose.yml:
sudo nano compose.yml
Fill it with the following configuration, which follows the official example on Miniflux's Docker documentation page:
services:
miniflux:
image: miniflux/miniflux:latest
container_name: miniflux
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgres://miniflux:password@db/miniflux?sslmode=disable
- RUN_MIGRATIONS=1
- CREATE_ADMIN=1
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=replace-with-a-strong-password
- BASE_URL=https://rss.example.com
restart: unless-stopped
db:
image: postgres:18
container_name: miniflux-db
environment:
- POSTGRES_USER=miniflux
- POSTGRES_PASSWORD=replace-with-a-strong-password
- POSTGRES_DB=miniflux
volumes:
- miniflux-db:/var/lib/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s
start_period: 30s
restart: unless-stopped
volumes:
miniflux-db:
A few things worth understanding in this file, because every line has a reason:
- Image
miniflux/miniflux:latestis the project's official image, published to Docker Hub. The documentation recommends pinning a version (for example2.0.25) to avoid unexpected updates; this example useslatestto always get the newest stable release, and you can swap in a specific version number at any time. DATABASE_URLis how Miniflux connects to PostgreSQL. The format ispostgres://user:password@db/database-name?sslmode=disable— the hostdbis the database service name on the same Compose network, andsslmode=disableis reasonable because this connection never leaves Docker's internal network. Replace both passwords in this file with strong, different passwords.RUN_MIGRATIONS=1tells Miniflux to run database schema migrations automatically on startup. Without it, Miniflux refuses to run until the schema is brought up to date.CREATE_ADMIN=1together withADMIN_USERNAMEandADMIN_PASSWORDcreates the first admin account when the container first runs. Once the admin exists, these three variables can be removed from the file — Miniflux will not recreate an account that already exists.BASE_URLis Miniflux's public address. Set it to the exact domain you will open in the browser, includinghttps://. Miniflux uses this value to build links and cookies; if it is wrong, links inside the app can point at the wrong address.- Port
8080:8080. Miniflux listens on port 8080 inside the container (the defaultLISTEN_ADDR). The official example maps80:8080, but here host port 8080 is used so that port 80 stays free for Nginx in Step 5. - Healthcheck
pg_isreadymakes sure the database container is actually ready to accept connections before Miniflux starts. Withoutdepends_onwith theservice_healthycondition, Miniflux often starts too early and dies because the database is not ready yet — one of the most common beginner errors. - Volume
miniflux-db:/var/lib/postgresql. Note the path: PostgreSQL 18 uses/var/lib/postgresql, while PostgreSQL 17 and below use/var/lib/postgresql/data. Since the image here ispostgres:18, the first path is the right one.
Save the file, then check its syntax before running it:
sudo docker compose config --quiet && echo "compose OK"
Expected result: the line compose OK prints with no error message. If there is an error, it is usually YAML indentation or an unbalanced quote — check the line mentioned in the error message.
Step 3: start the stack and check the containers
Start the stack:
sudo docker compose up -d
sudo docker compose ps
Expected result: both containers — miniflux and miniflux-db — show as running (or Up). Miniflux needs a few seconds on first start: it waits for a healthy database, runs migrations, then creates the admin account. Check the logs if anything looks off:
sudo docker compose logs --tail=30 miniflux
Expected result: the logs show migrations finishing and the HTTP server starting to listen, with no database connection errors. Next, test from inside the VPS that Miniflux responds:
curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8080
Expected result: 200, or a 302 redirect to the login page. If you get 000, the container is not ready yet or port 8080 is already used by another application — see the Troubleshooting section below.
Step 4: log in and add your first feeds
Open http://YOUR-VPS-IP:8080 in your browser. You will see Miniflux's clean login page — just a username and password field. Sign in with admin and the password you set in ADMIN_PASSWORD.
Once you are in, the first thing to do is replace that admin password with a stronger one if the password in Compose is still a temporary one. Go to Settings → Users, pick the admin account, and update its password. Do not put this off: anyone who can reach your Miniflux address before the password is changed can sign in as admin.
Now add your first feed. Click + New Feed or the add-feed menu, then paste the feed URL of a site you follow — for example https://blog.rnevio.com/feeds/posts/default for a blog feed, or the feed URL of any site you read regularly. Miniflux fetches the feed and shows its latest entries within seconds. Repeat for two or three sites you genuinely read every day.
To keep the feed list tidy from the start, create categories. In Miniflux, a category is created when you add a feed: fill in a category name such as "Technology", "News", or "Documentation". Well-grouped feeds keep the home page quick to scan even when the feed count reaches the dozens. And if you already have a feed list in an old RSS reader, do not add them one by one — Miniflux can import an OPML file through Settings → Import/Export. Export OPML from your old reader, import it here, and all your subscriptions move over at once, categories included.
Step 5: put Nginx with HTTPS in front
Do not leave Miniflux on plain HTTP at port 8080 if the site will be used from the internet — your login password travels over that connection. Create the file /etc/nginx/sites-available/miniflux:
server {
listen 80;
server_name rss.example.com;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Enable the configuration and issue a certificate:
sudo ln -s /etc/nginx/sites-available/miniflux /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
sudo certbot --nginx -d rss.example.com
Expected result: nginx -t answers test is successful, and Certbot reports the certificate was issued successfully. After that, access Miniflux at https://rss.example.com and log in again with your admin account.
One thing to adjust once HTTPS is live: the BASE_URL value in compose.yml must already contain the same https:// address — and in the Step 2 example it is indeed https://rss.example.com. If you change domains later, change BASE_URL too, then recreate the container with sudo docker compose up -d. If BASE_URL is still http://localhost while you access the site through an HTTPS domain, some links and cookies can behave strangely — this is the most common cause of repeated login problems after setting up a reverse proxy.
Step 6: tune it to the way you read
Miniflux works best when it adapts to how you read, not the other way around. A few settings worth adjusting under Settings:
- Refresh frequency. The default
POLLING_FREQUENCYis 60 minutes — each feed is checked for updates once an hour. For sites that publish rarely, that is plenty. If a particular feed needs to be faster, set it per-feed in that feed's own settings instead of speeding up every feed at once — overly aggressive refresh only loads the servers of the sites you follow. - Entry display. Miniflux offers several display styles: titles only for a quick scan, or content excerpts for reading without opening every article. Pick the one that makes you actually finish reading, not the one that makes the list look long.
- Keyboard shortcuts. The full list lives under Settings → Keyboard Shortcuts. Once you know a few basic keys — move between entries, mark as read, open the original article — reading dozens of entries feels far faster than clicking one by one.
- Companion apps. Miniflux provides an API used by many RSS apps on phones and desktops. If you read from your phone, find an app that supports Miniflux or the Fever API, enter your server address and an API key from Settings → API Keys, and your subscriptions sync across devices.
Finally, install Miniflux as a web app on your phone: open https://rss.example.com in your phone's browser, then choose "Add to Home Screen". Miniflux supports PWA, so it behaves like a regular app — its own icon, full-screen view, no browser address bar.
Step 7: back up the database
Everything in Miniflux — accounts, feeds, categories, starred entries — lives in PostgreSQL inside the miniflux-db volume. The most practical backup is a database dump with pg_dump from inside the container:
cd /opt/miniflux
sudo docker compose exec db pg_dump -U miniflux miniflux > ~/miniflux-backup-first.sql
ls -lh ~/miniflux-backup-first.sql
Expected result: a .sql file whose size grows with the number of feeds and entries. Store that file off the VPS — download it to your computer, or send it to another storage location. To restore, create an empty database and import the file with psql.
Schedule this backup to repeat, for example through a weekly cron job, and make sure periodic backup archives really end up off the VPS. A backup that stays on the same server does not help when that server itself has a problem. To update Miniflux to a new release, pull the latest image and recreate the container:
cd /opt/miniflux
sudo docker compose pull miniflux
sudo docker compose up -d
Because migrations run automatically (RUN_MIGRATIONS=1), updates usually finish with no extra steps — but make a backup first anyway, as a habit.
Troubleshooting
The miniflux container keeps dying with a database connection error. Almost always because Miniflux started before PostgreSQL was ready. Check that depends_on with condition: service_healthy and the pg_isready healthcheck are in compose.yml exactly as in the Step 2 example. Also check the database log with sudo docker compose logs db — if PostgreSQL fails to start because of an old volume from an incompatible version, check the volume path: PostgreSQL 18 uses /var/lib/postgresql, not /var/lib/postgresql/data.
The login page appears, but admin and the password are rejected. CREATE_ADMIN only creates the account the first time the container runs against an empty database. If you changed ADMIN_PASSWORD after the admin was created, the old password still applies — change it through the web interface under Settings → Users, not through Compose. If you are truly locked out, recreate the account with the CLI inside the container: sudo docker compose exec miniflux /usr/bin/miniflux -create-admin — this command uses the ADMIN_USERNAME and ADMIN_PASSWORD variables from the container environment.
Feeds never show new entries. First check whether the feed actually has new entries by opening it directly in a browser. If the feed is genuinely new but Miniflux does not fetch it, check the logs with sudo docker compose logs --tail=50 miniflux — fetch errors are recorded there, including cases where the site blocks Miniflux's user agent or the feed is invalid. Also check POLLING_FREQUENCY: the 60-minute default means a new feed entry can take up to an hour to appear.
After setting up Nginx, logins keep failing or links point at the wrong address. Check BASE_URL in compose.yml. Its value must exactly match the public address you open in the browser, including https:// — for example https://rss.example.com. If it is still http://localhost, change it, then run sudo docker compose up -d to recreate the container. Also check the X-Forwarded-Proto header in the Nginx configuration; without it, Miniflux can think the connection is still plain HTTP.
curl returns 000 or the browser cannot connect. Check the containers are running with sudo docker compose ps. If the status is Up but it still does not respond, check the logs with sudo docker compose logs --tail=50 miniflux. If a container refuses to start at all, port 8080 may already be used by another application — check with sudo ss -tlnp | grep 8080, then change the port mapping in compose.yml to "8081:8080" and restart with sudo docker compose up -d.
Summary table
| Component | Function | Port | Notes |
|---|---|---|---|
| miniflux | RSS reader app (Go, minimal) | 8080 → 8080 | Image miniflux/miniflux:latest |
| db | PostgreSQL 18 holding all Miniflux data | — | Image postgres:18, volume miniflux-db |
| DATABASE_URL | Miniflux's connection to PostgreSQL | — | postgres://miniflux:password@db/miniflux?sslmode=disable |
| RUN_MIGRATIONS | Automatic schema migration on start | — | Value 1 |
| CREATE_ADMIN | Creates the first admin account | — | Remove after the admin exists |
| BASE_URL | Public address for links and cookies | — | Must match your HTTPS domain |
| Nginx on host | Reverse proxy + HTTPS | 80 / 443 | Required when accessed from the internet |
| compose.yml | The stack's only configuration file | /opt/miniflux/compose.yml | Passwords replaced before use |
Check before you finish
- ☐ Both containers (
minifluxandminiflux-db) are running, andcurl http://localhost:8080returns200or302. - ☐ Admin login works, and the admin password has been changed to a strong one.
- ☐ Three first feeds have been added and show their latest entries.
- ☐ Categories have been created for those feeds, or an OPML file has been imported.
- ☐ Miniflux is reachable at
https://rss.example.com(replace with your domain) with a valid certificate and a matchingBASE_URL. - ☐ The first database backup has been made with
pg_dumpand stored off the VPS. - ☐ A companion app or phone PWA has been tried, if you read from your phone.
Three first feeds are only a warm-up. After a week of reading through Miniflux, which part changed your habits the most — the calm home page with no algorithm, the tidy categories, or the keyboard shortcuts? Tell us in the comments, and if any step above did not work on your VPS, paste the error message so it can be discussed together.
Read also: the Rnevio guide on how to install FreshRSS on a VPS with Docker, a free RSS reader with many extensions covers a more feature-rich RSS reader alternative, while the companion guide in this batch is how to install Discourse on a VPS, a self-hosted community forum.


Diskusi
Ada pertanyaan atau pengalaman yang ingin dibagikan?
Komentar ditinjau sebelum ditampilkan. Mari berdiskusi dengan sopan dan sesuai topik.
Tulis komentar