Deploy PatchMon

Linux patch monitoring and automation. Pinned PatchMon, Postgres, Redis

Deploy PatchMon

/data

Just deployed

/data

/var/lib/postgresql/data

Deploy and Host PatchMon on Railway

PatchMon is an open-source Linux patch monitoring and automation platform. A small agent on each server reports installed packages, pending updates and security fixes to one web dashboard, where you can see which hosts need patching, group them, get alerts, schedule patch runs and track compliance. It is licensed AGPL-3.0.

About Hosting PatchMon

This template runs the official PatchMon 2.1.8 image, pinned by digest and built from a public GitHub repository, next to Railway Postgres and Railway Redis. PatchMon is a single Go binary that serves the web UI, the REST API and the WebSocket endpoint agents connect to, and it runs database migrations on every start. JWT, session and encryption secrets are generated at deploy time, and the public domain is added to PatchMon's allowed origins for you. You only need to open the URL, create the first admin in the setup wizard and then add hosts. Postgres and Redis keep their data on Railway volumes.

Common Use Cases

  • See pending package and security updates across a fleet of Linux servers in one dashboard
  • Schedule and run patching on groups of hosts, with alerts when hosts fall behind or go offline
  • Keep an inventory of hosts, packages, repositories and Docker containers for audits and compliance reports

Dependencies for PatchMon Hosting

  • PostgreSQL (Railway Postgres, included)
  • Redis (Railway Redis, included)

Deployment Dependencies

Implementation Details

After the deploy finishes:

  1. Open the PatchMon service's public URL right away and complete the first-run wizard. It creates the first admin (until an admin exists, anyone with the URL can create one) and saves the server URL agents will use.
  2. Click Add Host, copy the one-line install command and run it as root on each Linux server. The agent connects back over HTTPS and keeps a WebSocket open.
  3. Optional settings such as OIDC single sign-on, the password policy or the time zone (TZ) can be added as variables on the PatchMon service; see docker/env.example in the PatchMon repository. With a custom domain, set CORS_ORIGIN=https://YOUR-DOMAIN and update the server URL under Settings.

Not included: in-browser RDP to Windows hosts, which needs upstream's guacd sidecar to share the server's network namespace. The Web SSH terminal works.

Updates: when the template repository bumps the PatchMon version, Railway shows an update notice on your project and you choose when to apply it. Read the repository's CHANGELOG.md first and back up Postgres before a major version.

Why Deploy PatchMon 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 PatchMon 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