---
title: "Deploy Kavita"
description: "Self-hosted Kavita reader for manga, comics and ebooks, admin set at deploy"
category: "Other"
url: https://railway.com/deploy/kavita-2
---

# Deploy Kavita

Self-hosted Kavita reader for manga, comics and ebooks, admin set at deploy

**[Deploy Kavita on Railway](https://railway.com/template/kavita-2)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/kavita-2/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other
- **Total deploys:** 1

## Template content

### Kavita https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/kavita.svg

- **Image:** jvmilazz0/kavita:0.9.1@sha256:31181a32f0dda73cae68721867028a7253d57881b58bea5754cd9e578e75421a
- **Start command:** `/bin/bash -c 'echo H4sIAAAAAAACA5VWbXPaOBD+7l+xVWiBK8aQmevdmaEzNNCWSXgZQpq7AS4jbIFdjOVKcmhK+e+3kiGQkOTukg9xVivty/PsI528cqZh7EypDKwTOKe3oaLAYxjQMFrROxe/GdzyKF0yoAocnypaAuovwxgkYz7zYcpmXDBQAYOECwU8YbEs42nN3rDbGt4MrrrddvfTTbt7c9brDhvtbmsAoYQ0lkyB5LuoAY95KiT08RCnnTR8XzApmYSZ4EugSYLuKoznsvxV8hjPL2AOpMm9BROw5D4jECqgOm0JUSgVpqFLGbnuxP21UqkUy5aOaLOUQxImbIY1WlazMWzUTV1Wv05y635vMHRt7b8h1pW2nDe+tIeNm0azgyVcXbYG3Uan5dqmCejTvz5y6jcuL697g6Zr43qrc7Te6jTaF2bx7OOnurMwDXA8Hs/CuXNUaacxOMcjdKI7n7LI8MmSsDMkiGUtF34owE7ggTvZ/RuFU0HFndOh8ZweWc/4MvTkkfkD5wtJ9uxYMJZIbLUE3TRkDiuBx2+ZkCWI+FwCjX3YVQCI0cP6XGRJGCuDlTKsyehVtsIZjOAV2BePdsCkpv1iC0AswRazR+toj2Kw5eOiH3nNQmsE9gy9sOkEJvDzJ3gJOGqZPNf6ra+leePN5oUirOEEclWobwmGk2BYCgVC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d | gunzip > /tmp/kavita-start.sh && exec bash /tmp/kavita-start.sh'`
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

# Deploy and Host Kavita on Railway

Kavita is an open-source, self-hosted reading server for manga, comics, webtoons, ebooks and PDFs. It scans your folders into a library with series, covers and metadata, and lets you read in the browser or in OPDS apps. Progress, collections, reading lists and multiple users with per-library access are built in.

## About Hosting Kavita

Kavita is one .NET service that keeps its settings and SQLite database in a config folder and reads books from library folders on disk. This template runs the official `jvmilazz0/kavita` image, pinned by version and digest, with one Railway volume at `/data`: `/data/config` holds the database, covers and logs, and `/data/library` holds your books. Upstream, the first person to open a new server registers as admin. This template creates that admin at first start while Kavita still listens on localhost only, so the public URL can't be claimed. Books go onto the volume with `railway ssh`.

## Common Use Cases

* Read your manga, comics and webtoons from any browser, with progress synced across devices
* Host an ebook and PDF library for yourself, family or friends, each with their own account and library access
* Serve your collection to OPDS reader apps (KOReader, Panels, Chunky and others)

## Dependencies for Kavita Hosting

* The official Kavita Docker image (`jvmilazz0/kavita`, v0.9.1.4)
* A Railway volume mounted at `/data` for the database, settings and library

### Deployment Dependencies

* Kavita: https://github.com/Kareadita/Kavita
* Release notes (v0.9.1.4): https://github.com/Kareadita/Kavita/releases/tag/v0.9.1.4
* Installation docs: https://wiki.kavitareader.com/installation/docker/
* Docker image: https://hub.docker.com/r/jvmilazz0/kavita

### Implementation Details

**First login.** Open the service's public URL and sign in as `KAVITA_ADMIN_USERNAME` (default `admin`). The password is the generated `KAVITA_ADMIN_PASSWORD`: open the Kavita service, then **Variables**. You can change it in your account settings after the first login; the variable is only read on the very first start.

**Adding books.** Kavita has no book upload in its web UI, so put files on the volume with the Railway CLI. One folder per series works best:

```bash
railway link            # pick this project and the Kavita service
railway ssh -- mkdir -p "/data/library/Books/My Book"
cat "My Book.epub" | railway ssh -- dd "of=/data/library/Books/My Book/My Book.epub" status=none
# or download straight onto the volume
railway ssh -- curl -fL --create-dirs -o "/data/library/Manga/One Series/Vol 1.cbz" "https://example.com/vol1.cbz"
```

Then, in Kavita, go to **Settings → Libraries → Add Library**, pick a type, add the folder (`/data/library/Manga`, `/data/library/Comics` or `/data/library/Books` are created for you) and scan. Folder watching picks up later additions.

**Notes.** Kavita listens on Railway's `PORT`; the start script writes it into Kavita's settings on every boot. Kavita's own Docker image ignores those settings, so the script starts Kavita without its container flag, and the update banner may show the non-Docker update steps. To upgrade, change the image tag to a newer Kavita release; your data stays on the volume.

## Why Deploy Kavita on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Kavita on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/kavita-2
