# Self-host Gatus

> Health dashboard that probes services over HTTP, ICMP, TCP and DNS, evaluates conditions on the results, and sends alerts. Run your own Gatus 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 Gatus 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 Gatus 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 Plus workspace (Gatus runs in Docker, which Plus and Pro include), tap **Launch** to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

```text
Set up Gatus on this workspace and give me the link. Follow https://envhaven.com/self-host/gatus.md
```

Then open the link it sends and create your Gatus 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 Gatus's docs require.

## Or keep it private with Tailscale

The preview URL puts Gatus 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 Gatus 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:

```text
Set up Gatus on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/gatus.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
```

- A Tailscale container runs beside Gatus, 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.
- Anything other services have to reach, such as a webhook, still needs a public address. [Keep self-hosted apps private with Tailscale](https://envhaven.com/guides/self-host-privately-with-tailscale) covers both, and what Tailscale's free plan includes.

| At a glance |  |
| --- | --- |
| What it is | Developer tools and monitoring |
| License | Apache-2.0 |
| Runs as | Docker (`ghcr.io/twin/gatus`) |
| Memory | Not documented |
| Plan that fits | Plus or larger |
| Web port | 8080 |
| Documentation | [github.com/TwiN/gatus/blob/master/README.md](https://github.com/TwiN/gatus/blob/master/README.md) |

## What your agent takes care of

- **Installing it.** Gatus runs from the official image, `ghcr.io/twin/gatus`, with its data in folders under `~/apps/gatus`.
- **Putting it on an HTTPS address.** The workspace's preview URL serves it, and your own domain can too.
- **Locking it down first.** What Gatus's docs say to set before it faces the internet, below.
- **Telling you what to back up**: /config/config.yaml (Docker mount; config/config.yaml by default, or GATUS_CONFIG_PATH), storage.path: SQLite file (for example data.db) when storage.type is sqlite and external PostgreSQL database when storage.type is postgres ([docs](https://github.com/TwiN/gatus/blob/master/README.md)).

### The settings it needs behind a proxy

- No public-URL or base-URL setting is documented: Gatus builds no absolute links of its own; a proxy only needs to forward HTTP to web.port. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- `web.address` and `web.port`: Listen address (default 0.0.0.0) and port (default 8080); bind to 127.0.0.1 when a local proxy or tunnel fronts it. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- `security.oidc.redirect-url`: With OIDC login, must be the public HTTPS URL of the dashboard ending in /authorization-code/callback. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- `web.read-buffer-size`: Raise it (example 32768) when a proxy or middleware causes 431 Request Header Fields Too Large errors; default 8192. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- `web.tls.certificate-file` and `web.tls.private-key-file`: Optional TLS in Gatus itself; not needed when a proxy terminates HTTPS. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))

### Before it faces the internet

- The only built-in access control is HTTP Basic (bcrypt hash) or OIDC; the security block defaults to empty, so the dashboard is open unless one is configured (or the proxy adds auth). ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- With OIDC, leaving allowed-subjects empty lets every authenticated subject in. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- Alert webhook URLs and passwords live in config.yaml; the README supports environment-variable substitution so secrets stay out of the file. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- Prometheus metrics are off by default. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))

## 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 Gatus to app.example.com." Add the domain on the dashboard's Domains page with a CNAME to `domains.envhaven.app`, and the agent changes Gatus's address settings to match.
- "Update Gatus 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.

```text
Set up Gatus on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, ghcr.io/twin/gatus, starting from the docs' compose file: https://github.com/TwiN/gatus/blob/master/.examples/docker-compose/compose.yaml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- Keep the compose file in ~/apps/gatus 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 Gatus's port 8080.
- The preview URL terminates HTTPS in front of Gatus: 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/gatus.md for the preview URL, as Gatus's docs describe for running behind a proxy; skip any that apply only when Gatus serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/gatus.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 Gatus 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, Gatus'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.
- Default storage is in memory: check history and uptime vanish on restart unless storage.type is sqlite or postgres. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- ICMP checks work without extra capabilities since v5.31.0 unless running as root; Linux may still need the pro-bing setup. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- Email alerts need an external SMTP server (host and port, example 587); the README lists many other alert providers (Slack, Discord, Telegram and more). ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- The optional connectivity checker skips all endpoint checks while Gatus's own internet connectivity is judged down. ([docs](https://github.com/TwiN/gatus/blob/master/README.md))
- 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.

Gatus's own [documentation](https://github.com/TwiN/gatus/blob/master/README.md) covers each step for its install methods.

## Sources

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

- [github.com/TwiN/gatus/blob/master/README.md](https://github.com/TwiN/gatus/blob/master/README.md)

## Keep reading

- [Self-host any app with your agent](https://envhaven.com/self-host)
- [Self-host Gitea](https://envhaven.com/self-host/gitea)
- [Self-host Forgejo](https://envhaven.com/self-host/forgejo)
- [Self-host Uptime Kuma](https://envhaven.com/self-host/uptime-kuma)
- [Self-host Grafana](https://envhaven.com/self-host/grafana)
- [AI agent hosting](https://envhaven.com/guides/ai-agent-hosting)

Source: https://envhaven.com/self-host/gatus
