Self-host Uptime Kuma

Self-hosted monitoring tool that checks HTTP(S), TCP, ping, DNS and other targets, sends notifications and publishes status pages. Run your own Uptime Kuma on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.

Updated November 23, 2026

Running your own Uptime Kuma usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Uptime Kuma behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.

Just ask your agent

Open a Hobby workspace, tap Launch to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

Set up Uptime Kuma on this workspace and give me the link. Follow https://envhaven.com/self-host/uptime-kuma.md

Then open the link it sends and create your Uptime Kuma account straight away, before anyone else finds the address. That is the whole request: the address in it is this page’s Markdown copy, and the agent follows the instructions for it further down, with every setting Uptime Kuma’s docs require.

Or keep it private with Tailscale

The preview URL puts Uptime Kuma on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Uptime Kuma an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace’s Vars pane as TS_AUTHKEY, and ask the agent:

Set up Uptime Kuma on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/uptime-kuma.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
  • On Plus and Pro, a Tailscale container runs beside Uptime Kuma, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
  • On Hobby, Tailscale runs in the workspace beside Uptime Kuma; after a restart or an update, ask the agent to start both again.
  • Anything other services have to reach, such as a webhook, still needs a public address. Keep self-hosted apps private with Tailscale covers both, and what Tailscale’s free plan includes.
At a glance
What it isDeveloper tools and monitoring
LicenseMIT
Runs asDocker (louislam/uptime-kuma) or a native install
MemoryNot documented
Plan that fitsHobby or larger
Web port3001
Documentationgithub.com/louislam/uptime-kuma/wiki/%F0%9F%94%A7-How-to-Install

What your agent takes care of

  • Installing it. Uptime Kuma runs from the official image, louislam/uptime-kuma, with its data in folders under ~/apps/uptime-kuma, or without Docker on Hobby.
  • Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
  • Locking it down first. What Uptime Kuma’s docs say to set before it faces the internet, below.
  • Telling you what to back up: /app/data (Docker volume; host path set by the compose ./data mount), ./data/ (non-Docker, DATA_DIR) and external MariaDB when UPTIME_KUMA_DB_TYPE=mariadb (docs).

The settings it needs behind a proxy

  • Settings > Reverse Proxy > HTTP Headers > Trust Proxy (set in the UI, no env var): Make Uptime Kuma trust X-Forwarded-* headers so the real client IP appears in logs; only enable when it is reachable only through the proxy. (docs)
  • WebSocket headers Upgrade and Connection: The dashboard talks over WebSocket, so the proxy must forward both headers. (docs)
  • UPTIME_KUMA_WS_ORIGIN_CHECK: By default the WebSocket Origin header must match the server hostname (default cors-like); set to bypass to disable the check. (docs)
  • Host or X-Forwarded-Host header (status pages mapped to domains): Proxy must pass the original host so Uptime Kuma knows the current domain name for domain-mapped status pages. (docs)
  • UPTIME_KUMA_HOST / UPTIME_KUMA_PORT (or HOST / PORT): Address and port the server binds to (default port 3001); bind to 127.0.0.1 when a proxy on the same host fronts it. (docs)

Before it faces the internet

  • No default credentials are documented; the first start runs a setup wizard, so create the admin account immediately after exposing the port. Since 3.0.0 the UK_INITIAL_ADMIN_USERNAME and UK_INITIAL_ADMIN_PASSWORD variables seed the admin and skip the wizard. (docs)
  • Publish the port on loopback only when a proxy on the same host fronts it. (docs)
  • Use HTTPS in front of it on a public network. (docs)
  • Docker monitor type: do not expose the instance to the Internet when the Docker socket is mounted. (docs)

Things to ask next

Everything after the install is one more sentence to the agent. Some that come up:

  • “Add a check for every site I run, and alert me on Telegram when one goes down.”
  • “Put it behind a login before anyone else finds the address.”
  • “Move Uptime Kuma to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to domains.envhaven.app, and the agent changes Uptime Kuma’s address settings to match.
  • “Update Uptime Kuma to the latest release.” It pulls the new image and recreates the container, data kept.

Instructions for the agent

The agent reads these from the page’s Markdown copy. They also work pasted on their own, if you would rather give them in your own words.

Set up Uptime Kuma on this workspace and serve it at my preview URL.
- Where Docker has a daemon (Plus and Pro), use Docker Compose with the official image, louislam/uptime-kuma, starting from the docs' compose file: https://github.com/louislam/uptime-kuma/blob/master/compose.yaml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- Keep the compose file in ~/apps/uptime-kuma and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Uptime Kuma's port 3001.
- Without Docker (on Hobby, where Docker has no daemon), install it as its docs describe, with a git checkout with `npm run setup`, then `node server/server.js` (Node.js >= 20.4, Git, pm2 (to run in the background)), into ~/apps/uptime-kuma with its data, so it survives workspace updates; global installs and system paths do not. Run it in a tmux window named uptime-kuma, listening on 0.0.0.0:3001, and point my preview URL at port 3001.
- The preview URL terminates HTTPS in front of Uptime Kuma: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/uptime-kuma.md for the preview URL, as Uptime Kuma's docs describe for running behind a proxy; skip any that apply only when Uptime Kuma serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/uptime-kuma.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Uptime Kuma up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.

What to know

  • In Docker, Uptime Kuma’s containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
  • Without Docker, Uptime Kuma runs as a process in the workspace, so after a restart or an update, ask the agent to start it again.
  • The UI depends on WebSocket; a tunnel or proxy that drops Upgrade/Connection breaks the dashboard (Cloudflare Tunnel is a documented option). (docs)
  • SQLite needs real POSIX file locking; network filesystems such as NFS can corrupt the database, so keep /app/data on local disk. (docs)
  • Monitors run from the server’s own IP; Cloudflare-fronted targets may challenge or block them. (docs)
  • Email (SMTP) is one notification channel among many (Telegram, Discord, Gotify, Slack, Pushover and 90+ services). (docs)
  • Docker container monitoring needs the Docker socket mounted into Uptime Kuma, which the docs warn about. (docs)
  • Uptime Kuma expects its own host rather than a path under one, so it takes the workspace’s preview URL or a domain of its own.
  • A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.

Without a workspace

The manual route, on a server you run:

  1. Rent a Linux VPS, secure SSH, and create a user for the app.
  2. Install Docker and write a compose file from the official image.
  3. Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
  4. Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
  5. Keep the firewall closed except for the proxy, and schedule backups and updates.

Uptime Kuma’s own documentation covers each step for its install methods.

Sources

Facts about Uptime Kuma come from its own documentation, checked on 2026-11-23: