---
title: "Deploy Komari"
description: "Lightweight self-hosted server monitor with live charts, alerts and agents"
category: "Observability"
url: https://railway.com/deploy/komari-1
---

# Deploy Komari

Lightweight self-hosted server monitor with live charts, alerts and agents

**[Deploy Komari on Railway](https://railway.com/template/komari-1)**

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

- **Creator:** Agaz Self-Host
- **Category:** Observability

## Template content

### Komari https://cdn.jsdelivr.net/gh/komari-monitor/komari-web@d54ce1288df41ead08aa19f8700186e68028a889/public/favicon.png

- **Source:** https://github.com/aalfath/komari-railway-template
- **Health check:** /ping
- **Public domain:** Yes

## Documentation

# Deploy and Host Komari on Railway

Komari is a lightweight, open-source, self-hosted server monitor (MIT licence). A small agent on each of your machines streams CPU, memory, disk, network, load and uptime to a web dashboard every second. The dashboard shows live and historical charts, runs ping checks, sends offline and usage alerts, and offers a browser terminal.

## About Hosting Komari

This template deploys one service, **Komari** 1.6.2, built from the public repo `aalfath/komari-railway-template`, with a Railway volume at `/app/data`. Komari stores its settings, accounts and metric history in SQLite files on that volume, so no separate database is needed and data survives redeploys. On first boot a small start script creates the administrator from the template's generated password over the loopback interface, so the public site never shows Komari's "first visitor becomes admin" install page. The service listens on port 25774 behind Railway's HTTPS domain, uses `/ping` as its health check and used about 35 MB of RAM in our test, well inside Railway's 0.5 GB Free plan.

## Common Use Cases

* Watch CPU, memory, disk and traffic for a handful of VPSs, home servers or Raspberry Pis from one page
* Run a public or private status page for your servers, with offline and usage alerts
* Keep monthly traffic accounting and renewal reminders for rented servers

## Dependencies for Komari Hosting

* A Railway volume at `/app/data` (settings, accounts and metrics in SQLite)
* The Komari agent on each machine you want to monitor (installed by a one-line command from the dashboard)

### Deployment Dependencies

* [Komari on GitHub](https://github.com/komari-monitor/komari) and its [1.6.2 release](https://github.com/komari-monitor/komari/releases/tag/1.6.2)
* [Komari documentation](https://www.komari.wiki/en/install/quick-start)
* [Komari agent](https://github.com/komari-monitor/komari-agent)
* [Template source](https://github.com/aalfath/komari-railway-template)

### Implementation Details

**After deploying:**

1. Open the service's **Variables** tab and copy `KOMARI_ADMIN_PASSWORD` (generated for you). The username is `admin` unless you changed `KOMARI_ADMIN_USERNAME` before deploying.
2. Open the Railway URL, click **Login** and sign in. Change the password under your account settings if you like; the variable is only used on the very first boot.
3. In the admin area, open **Server**, click **Add**, then copy the install command for the new node and run it on the machine you want to monitor. Agents connect to `https://YOUR-DOMAIN` over HTTPS/WebSocket, so no extra port is needed.
4. Under **Settings** you can make the site private, set up notifications (webhook or script senders) and add OAuth login.

**Variables:**

| Variable | Default | Purpose |
| --- | --- | --- |
| `KOMARI_ADMIN_USERNAME` | `admin` | First administrator, created on first boot only |
| `KOMARI_ADMIN_PASSWORD` | generated | First administrator's password (Komari requires upper case, lower case and a digit) |
| `PORT` | `25774` | Port Komari listens on |

**Updates:** the service builds from the template repo, which pins the official image `ghcr.io/komari-monitor/komari` by version and digest. When a new Komari release is tested and merged there, Railway shows an "update available" notice on your project, and you choose when to apply it. Read `CHANGELOG.md` in the repo first. Back up your data from Komari's **Settings → Backup** before a big upgrade.

**Restarts:** Komari exits on purpose after you upload a backup to restore it; the start script restarts it in place. Any crash makes the service exit non-zero, so Railway's restart policy brings it back.

## Why Deploy Komari 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 Komari 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

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click

Open this page in a browser: https://railway.com/deploy/komari-1
