Miniflux is a lightweight, open-source RSS reader that turns a small server into a private Feedly alternative. Self-hosting it with Docker gives you control over your feeds, reading history, and retention policy without sending your subscriptions to another hosted dashboard.
This guide covers a production-minded Miniflux installation with Docker Compose and PostgreSQL. It also explains HTTPS, the first admin account, feed backups, upgrades, and the failures that commonly make a new instance appear broken. The commands follow Miniflux’s official Docker documentation, which publishes images to Docker Hub, GitHub Container Registry, and Quay.io. Pin a tested release instead of using latest blindly.
What Miniflux needs
Miniflux is deliberately small. The application container needs a PostgreSQL database, a persistent database volume, and a URL through which your browser can reach it. Redis is not required for the standard deployment. Keep PostgreSQL on the private Docker network and expose only the reverse proxy or Miniflux port.
For a small household or personal server, a modest Linux VM is enough. Give PostgreSQL reliable disk storage, keep the host patched, and make sure your backup destination is separate from the machine running Miniflux. If your server already has Caddy, you can reuse the Caddy HTTPS reverse proxy setup. Review the homelab security rules before exposing a service to the public internet.
Create the Compose project
Create a directory with restricted permissions and a .env file for the database password and initial administrator. The official documentation uses DATABASE_URL, RUN_MIGRATIONS, CREATE_ADMIN, ADMIN_USERNAME, and ADMIN_PASSWORD for the first initialization.
mkdir -p ~/services/miniflux
cd ~/services/miniflux
umask 077
cat > .env <<'EOF'
POSTGRES_PASSWORD=replace-with-a-long-random-password
ADMIN_USERNAME=admin
ADMIN_PASSWORD=replace-with-a-unique-password
EOF
Generate passwords with a password manager or a command such as openssl rand -base64 32. Do not commit .env to Git, paste it into a public issue, or reuse the database password for the web account.
Create compose.yml:
services:
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: miniflux
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: miniflux
volumes:
- miniflux-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U miniflux -d miniflux"]
interval: 10s
timeout: 5s
retries: 5
miniflux:
image: miniflux/miniflux:2.0.25
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgres://miniflux:${POSTGRES_PASSWORD}@db/miniflux?sslmode=disable
RUN_MIGRATIONS: "1"
CREATE_ADMIN: "1"
ADMIN_USERNAME: ${ADMIN_USERNAME}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
ports:
- "127.0.0.1:8080:8080"
volumes:
miniflux-db:
The version above is an example pinned tag, not a promise that it is the newest release when you read this. Check the official Miniflux documentation or container registry, test the target version, and replace it deliberately. Avoid publishing PostgreSQL’s port. The application binds to loopback so a reverse proxy on the same host can reach it while the public interface cannot connect directly.
Start the stack and inspect the logs:
docker compose pull
docker compose up -d
docker compose ps
docker compose logs --tail=100 miniflux
On the first start, Miniflux runs database migrations and creates the administrator. Once the account exists, remove CREATE_ADMIN, ADMIN_USERNAME, and ADMIN_PASSWORD from the Compose environment or move them out of the active file. Keeping an initial password in a long-lived environment is unnecessary risk.
Add HTTPS with a reverse proxy
Do not treat the loopback binding as a replacement for TLS. Put Miniflux behind a reverse proxy with a real DNS record and HTTPS. A minimal Caddy site looks like this:
rss.example.com {
reverse_proxy 127.0.0.1:8080
}
Set DNS before requesting a certificate, then open https://rss.example.com and sign in with the admin account. Use the final HTTPS URL when sharing the service with mobile clients or other household users. If you already use another proxy, forward requests to 127.0.0.1:8080 and preserve the Host header. Do not expose the database or use a self-signed certificate for a service that needs reliable feed fetching and browser access.
Configure feeds and retention
Miniflux supports RSS and Atom feeds. Add feeds one at a time at first so you can tell whether a failure is caused by the feed publisher, DNS, TLS, or your server. Prefer the publisher’s official feed URL. A feed that works in one reader can still fail on your server because of rate limits, invalid certificates, bot protection, or an IPv6 route that your host cannot reach.
Create user accounts with separate passwords rather than sharing the administrator login. Use tags and categories to keep subscriptions manageable. Decide how much history and how many unread entries you actually need; retention reduces database growth and makes backups faster. Treat private feeds and authenticated URLs as credentials because some feeds contain tokens in their URLs.
Back up Miniflux correctly
The important state is in PostgreSQL: users, feed definitions, entries, tags, and reading status. The container itself is disposable. Take a logical dump and copy it to storage that is not the same Docker volume. A simple manual backup is:
mkdir -p ~/backups/miniflux
cd ~/services/miniflux
docker compose exec -T db pg_dump -U miniflux -d miniflux | gzip > ~/backups/miniflux/miniflux-$(date +%F).sql.gz
Test restoration on a separate PostgreSQL instance. A backup that has never been restored is only a hope. Keep several generations, encrypt off-host copies, and include the Compose file and a safely stored record of the image version. Never put the .env file into an unencrypted public backup.
Upgrade without surprises
Read the Miniflux release notes before changing the image tag. Back up PostgreSQL, record the current version, pull the new image, and recreate only after the dump succeeds:
cd ~/services/miniflux
docker compose exec -T db pg_dump -U miniflux -d miniflux | gzip > ~/backups/miniflux/pre-upgrade-$(date +%F-%H%M).sql.gz
# edit compose.yml and change the pinned Miniflux tag
docker compose pull miniflux
docker compose up -d miniflux
docker compose logs --tail=100 -f miniflux
Keep the old image available until the new container is healthy. Do not downgrade across a database migration without reading the release guidance and having a tested restore. Review the Docker upgrade checklist when you automate image updates.
Troubleshoot the common failures
The page is unreachable. Check docker compose ps, then confirm Miniflux is listening on loopback with ss -ltnp | grep 8080. If the proxy returns 502, inspect its logs and run curl http://127.0.0.1:8080 on the host.
The container exits on startup. Read docker compose logs miniflux. A malformed DATABASE_URL, a wrong password, or a database that is still starting are common causes. The health check and depends_on condition help, but they do not repair incorrect credentials.
Feeds never update. Test DNS and HTTPS from inside the container, then inspect Miniflux logs. Check the feed URL, server clock, outbound firewall, and publisher rate limits. Do not repeatedly hammer a feed that returns 429.
The admin account was not created. CREATE_ADMIN only helps during initialization. Confirm the variables were present on the first run and that the database volume is the one you intended. If the database already contains users, use the normal account recovery or administration workflow rather than deleting the volume.
PostgreSQL is full. Check disk usage, retention settings, and old backups. Do not delete the database volume to reclaim space; that deletes the service state.
FAQ
Is Miniflux a good Feedly alternative?
Yes, if you want a fast reader with control over hosting and data. It is less appropriate when you need a managed service, large collaborative workflows, or zero maintenance.
Does Miniflux require Redis?
No. The standard Docker deployment uses Miniflux and PostgreSQL. Avoid adding services that the application does not need.
Can I run it on a Raspberry Pi?
The official images publish ARM architectures, including ARM64 and ARM variants. Confirm the current image supports your board and give PostgreSQL reliable storage rather than a fragile, heavily worn card.
Should I use latest?
Pin a tested version in production. Update intentionally after a backup and a review of the release notes.
What should I back up?
Back up PostgreSQL, the Compose configuration, and the version record. The container image can be pulled again; your database and credentials cannot be reconstructed from it.
Miniflux is a good example of a service where self-hosting stays simple when the boundaries are clear: one application, one database, HTTPS at the edge, and tested backups. Start with a pinned release, secure the administrator account, and make restoration part of the setup rather than an emergency project.