Skip to content

Installing Gatus

By the end of this chapter Gatus is running on your machine and answering on its web port — with no endpoints yet, or with one trivial one — and you have the check that proves it. There are two honest ways to install it. The project's own front door is a container image. The second way — one program file built from the official release source — is the one this guide's lab used and verified step by step, because the lab machine runs no containers. Pick the one that fits your machine; from the config file onwards, the two are identical.

Way one: the container image

The project publishes an official image. With Docker installed, Gatus is one command:

docker run -p 8080:8080 --name gatus ghcr.io/twin/gatus:stable

That runs Gatus with its built-in example configuration. To give it your own, put your config in a folder as config.yaml and mount the folder over the container's /config:

docker run -p 8080:8080 --name gatus \
  -v "$PWD/config:/config" \
  ghcr.io/twin/gatus:stable

This guide does not run containers in its lab, so this route is documented from the project's own instructions rather than demonstrated — everything after this chapter (the config file, the dashboard, the API, the alerts) is the same on both routes and is demonstrated.

Way two: the single binary

Gatus is written in Go and builds to one static program file — no runtime, no libraries to install beside it. One fact to know before you go looking, so you do not hunt for something that is not there: the project's release page attaches no pre-built binaries — checked on the current release (v5.38.0, October 2026), it offers the source archive only. So the binary route means building it once, with the official Go toolchain. It is a few minutes, most of them download.

You need Go at the version the release asks for — the go line at the top of the release's go.mod file names it (1.26 for v5.38.0). With Go installed:

tar -xzf gatus-5.38.0.tar.gz
cd gatus-5.38.0
go build -o gatus .

The download of the source archive is from the release page of the project's GitHub repository (github.com/TwiN/gatus). The build fetches the libraries Gatus depends on, then writes a single file named gatus — in the lab, about 51 MB, statically linked, yours to copy anywhere. The lab's record of the build, including the checksum-verified Go toolchain it used, is gatus-lab/transcripts/t00-binary.txt.

Your first config, and starting it

Gatus needs a config file before it has anything to say. Make the smallest useful one — a single endpoint watching a page on the same machine. (The lab runs a tiny web server for its targets; if you have nothing local to watch yet, watch any page you are allowed to check — chapter 4 uses the lab server, and its script is in gatus-lab/serve.py if you want the same setup.)

endpoints:
  - name: front-page
    url: "http://127.0.0.1:8734/"
    interval: 10s
    conditions:
      - "[STATUS] == 200"

Save it as config.yaml in a folder of its own. Then start Gatus and tell it where the file is:

GATUS_CONFIG_PATH=/path/to/your/config.yaml ./gatus

Leave out the variable and Gatus looks for config/config.yaml under the folder it was started from — the single most common cause of "it started but shows nothing" (chapter 12).

The check

Two receipts prove the install. The log validates your endpoints and announces the listener (from the lab's startup, gatus-lab/transcripts/t01-startup.txt):

[config.ValidateEndpointsConfig] Validated 3 endpoints
[controller.Handle] Listening on 127.0.0.1:8085

And the dashboard answers:

curl -s -o /dev/null -w "%{http_code}\n" http://127.0.0.1:8085/

Expect 200. Open the same address in a browser and you will see the dashboard with your endpoint listed; the next chapter reads its first results properly.

One thing in that log line deserves a word, because this whole guide follows the lab in it. Gatus listens on port 8080 by default, on all interfaces. The lab machine already had a program on 8080 — you may meet the same thing, and Gatus will refuse to start and say address already in use in its log. The fix is two lines in the config, under web::

web:
  address: 127.0.0.1
  port: 8085

The lab ran on 8085, bound to this machine only, so every address in the chapters and transcripts that follow uses 8085. On your own machine, keep 8080 unless something is sitting on it — and consider the address line either way: a dashboard bound to 127.0.0.1 can only be read from the machine itself, which for many home setups is exactly right (chapter 11 returns to who should be able to see a status page).

A note on where to run it: Gatus is small and quiet — a few megabytes of memory, a check's worth of CPU every interval — and it is usually left running as a service (a container with a restart policy, or a systemd unit; the recipes chapter has one). For this guide, running it in a terminal you can watch is better: the log is half the lesson.