Deploy Komari
Lightweight self-hosted server monitor with live charts, alerts and agents
Just deployed
/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:
- Open the service's Variables tab and copy
KOMARI_ADMIN_PASSWORD(generated for you). The username isadminunless you changedKOMARI_ADMIN_USERNAMEbefore deploying. - 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.
- 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-DOMAINover HTTPS/WebSocket, so no extra port is needed. - 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.
Template Content

