Self-Hosting Calibre-Web on a Raspberry Pi: A Personal Ebook and Comic Library Server
If you've got a shelf of DRM-free ebooks, PDFs of datasheets and manuals, or a stack of comics and technical reference material scattered across a laptop, a phone, and a cloud drive, Calibre-Web turns a Raspberry Pi into a single, always-on library you can browse and read from any device with a browser. It builds on the Calibre library format you may already know from the desktop app, but serves it as a proper web app with user accounts, an OPDS feed for e-reader apps, and on-the-fly format conversion — without needing the desktop Calibre GUI running at all.
What Calibre-Web Actually Does
Calibre-Web is a lightweight Flask web application that reads an existing Calibre library (the folder structure and metadata.db file Calibre itself creates) and serves it as a browsable, searchable catalog. It is not a replacement for Calibre's desktop metadata-editing tools, but a read-focused front end, with just enough editing capability to tag, rate, and fix metadata without going back to a desktop machine. Key features that make it worth running on a shop or home Pi specifically:
- Multi-user accounts with per-user reading lists, so the whole household or shop can use one server without seeing each other's "want to read" shelves.
- OPDS catalog support, which lets e-reader apps (KOReader, Moon+ Reader, the Kobo/Kindle-adjacent apps that support OPDS) browse and download directly from the server over the network, no USB cable required.
- Built-in e-reader for EPUB, PDF, and several comic/manga formats directly in the browser, so a phone or tablet can read without installing anything extra.
- Optional Kobo sync and send-to-Kindle/email integration for devices that support it.
Prerequisites
- A Raspberry Pi (3B+ or newer handles this comfortably; a Pi 4 or 5 is overkill for the app itself but useful if the library is large or you also run format conversion frequently) running Raspberry Pi OS or another Debian-based distro.
- Docker and Docker Compose installed — this is by far the least error-prone way to run Calibre-Web and its optional Calibre-binary dependency for conversions.
- An existing Calibre library folder, or an empty directory if you're starting fresh and will add books through the web UI.
- Enough storage for your library; a USB SSD or a network share mounted into the container is strongly preferable to an SD card for a library of any real size, both for speed and for SD card wear.
Setting Up with Docker Compose
The community-maintained linuxserver/calibre-web image is the most actively updated option and includes optional Kepubify and Calibre binaries for conversion. A minimal compose file looks like this:
version: "3"
services:
calibre-web:
image: lscr.io/linuxserver/calibre-web:latest
container_name: calibre-web
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- DOCKER_MODS=linuxserver/mods:universal-calibre
volumes:
- ./config:/config
- /path/to/your/library:/books
ports:
- 8083:8083
restart: unless-stopped
Bring it up with docker compose up -d, then visit http://<pi-ip>:8083. The first-run setup wizard asks for the path to your library (/books as mapped above) and creates the admin account. If you're starting from zero rather than an existing Calibre library, point it at an empty folder and Calibre-Web will initialize a fresh metadata.db for you.
Reverse Proxy and Remote Access
Calibre-Web has no built-in HTTPS by default, so for anything beyond your own LAN, put it behind a reverse proxy (Nginx Proxy Manager or Caddy both handle automatic Let's Encrypt certificates with minimal fuss) rather than exposing port 8083 directly to the internet. If you're already running Tailscale or a WireGuard VPN on your network, that is the simpler and safer option for remote access without opening any inbound ports at all.
Adding Books and Using the OPDS Feed
New books can be uploaded directly through the web UI (drag-and-drop EPUB, PDF, MOBI, and most common formats), or dropped into a watched "upload" folder if you enable that integration. To connect an e-reader app, point it at http://<pi-ip>:8083/opds and log in with your Calibre-Web credentials — KOReader's OPDS catalog browser and most Kobo-compatible reading apps will pick up your full library, covers and all, and let you download books directly to the device over Wi-Fi.
Keeping It Maintained
Because the whole stack lives in a container, updates are as simple as pulling the new image (docker compose pull && docker compose up -d) and restarting. Back up the config folder (which holds your Calibre-Web app settings and user database) and your library folder separately — the library folder is the thing that actually matters if the Pi's SD card fails, since it's a self-contained Calibre library that can be mounted by a fresh Calibre-Web instance, or even opened directly in desktop Calibre, with no special recovery process.