Deploy Komari

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

Deploy Komari

/app/data

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

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:

VariableDefaultPurpose
KOMARI_ADMIN_USERNAMEadminFirst administrator, created on first boot only
KOMARI_ADMIN_PASSWORDgeneratedFirst administrator's password (Komari requires upper case, lower case and a digit)
PORT25774Port 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.


Template Content

More templates in this category

View Template
Rootprint
Open-source logs and traces with full-text search on object-storage.

Rootprint
1
View Template
Pyroscope profiling
Protected continuous profiling with durable Pyroscope storage.

Anton Orel
1
View Template
SigOnly
Deploy SigNoz with a working demo app & config in one click

zoeyjones
21