Deploy Kavita reading server

Kavita ebook, comic and manga server with browser uploads and storage

Deploy Kavita reading server

Reading server

Kavita Gateway

caddy:2.11.9-alpine

Just deployed

Deploy and Host Kavita on Railway

Kavita is a self-hosted reading server for ebooks, comics and manga. This template runs Kavita 0.9.1.4 privately, adds a browser upload manager for your library, and puts a password-protected gateway in front of first-time setup and uploads.

About Hosting Kavita

Kavita reads books from folders on disk and has no built-in upload, so this template adds dufs at /files/ to upload into the same volume Kavita scans. One 5 GB volume at /data holds both the Kavita database (/data/config) and your books (/data/library), so accounts, libraries, reading progress and files survive restarts and redeploys.

The Caddy gateway is the only public service. It asks for a generated password (GATEWAY_USERNAME and GATEWAY_PASSWORD on the Kavita Gateway service) before anyone can create the first Kavita admin or open the upload manager. Everything else uses Kavita's own login, so the web reader, mobile apps and OPDS feeds work normally.

After deploying: open the domain, create your admin account (the browser asks for the gateway credentials once), upload books at /files/ in one folder per series, then add a library in Kavita pointing at a folder such as /data/library/books.

Why Deploy Kavita on Railway

  • No first-visit takeover: admin registration stays behind the generated gateway password.
  • Upload books, comics and manga from a browser instead of copying files to a server.
  • Pinned image digests for Kavita, dufs and Caddy, with health checks and a persistent volume.

Common Use Cases

  • A private ebook library with a web reader for you and your family.
  • Reading comics and manga across devices with synced progress.
  • Serving an OPDS catalog to reading apps on phones and e-readers.

Dependencies for Kavita Hosting

The template uses two services and one Railway volume. No database or external account is needed.

Deployment Dependencies

  • Kavita provides the library scanner, reader, users and OPDS.
  • dufs provides the browser upload manager for the library folder.
  • Caddy provides the public gateway and its Basic Auth on setup and uploads.
  • Railway provides builds, private networking, HTTPS and the persistent volume.

Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0