← How-Tos
raspberry-pi 14 min ago ◯ 4 min read

Self-Hosting Calibre-Web on a Raspberry Pi: A Personal Ebook and Comic Library Server

calibre-webself-hostingebooksopdsraspberry pidocker

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:

Prerequisites

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.