Skip to content

Install

Heptapod runs as a set of Docker Compose services on one Linux server: the app, queue workers, a scheduler, PostgreSQL, Redis and a Caddy proxy with automatic TLS. The installer downloads the latest release, writes the configuration, generates secrets, starts the stack and creates the first Owner account.

curl -fsSL https://heptapod.watch/install.sh | sudo bash -s -- --domain monitor.example.com

Use a server outside the infrastructure you monitor. Checks run from this server: a failure means the site could not be reached from there.

Setup Minimum Example (Hetzner)
Without Lighthouse 2 vCPU, 4 GB RAM, 40 GB disk CX23 or CAX11
With Lighthouse (default) 4 vCPU, 8 GB RAM, 80 GB disk CX33 or CAX21

Lighthouse needs the browser services, which the installer enables by default. On a 4 GB server, pass --without-browser. The release images, such as

ghcr.io/heptapodwatch/heptapod-app, exist for amd64 and arm64, so either architecture works. Keep at least 12 GiB free for Docker: 6 GiB for the images and 6 GiB for backups. Capacity depends on the mix of checks, not only on the number of sites.

  1. Use a Linux server (amd64 or arm64). Ubuntu and Debian are tested; on other distributions, install Docker first as described in Other Linux distributions. Point an A record (and AAAA only with working IPv6) for your monitoring domain at the server. Allow inbound TCP 22, 80 and 443. The default mode needs host ports 80 and 443 free. If another web server or proxy holds them, use --behind-proxy (see below).

  2. Run the installer with your domain and the email address of the first Owner. Add --without-browser on a 4 GB server.

    shell
    curl -fsSL https://heptapod.watch/install.sh | sudo bash -s -- --domain monitor.example.com --owner-email you@example.com

    The installer downloads the latest release bundle, checks its SHA-256 checksum, unpacks it into /opt/heptapod and runs the bundle’s scripts/install.sh. Git is not needed. Docker Engine with Compose v5 must be installed. If it is missing, the installer stops and shows the same command with --install-docker, which installs Docker from Docker’s apt repository on Ubuntu and Debian. --version vX.Y.Z installs a specific release, --dir changes the directory.

    If a check fails, the installer says what is wrong, what to run next and which page explains it; nothing is created before the checks pass, so rerunning is safe.

  3. The installer creates .env.prod with generated secrets, starts the stack and waits until every service is healthy. It prints the Owner password once. Store it in a password manager.

  4. Open https://monitor.example.com and sign in. Public registration is disabled; invite everyone else from Settings → Members.

Running the installer again keeps the existing configuration and secrets. It does not start or restart the instance, but prints the upgrade command.

Use this path to install from source.

  1. Install Docker Engine with Docker Compose v5, Git and OpenSSL. Point the domain at the server and open the ports as above.

  2. Add your account to the docker group, log out and log back in. Continue only when docker ps works without sudo.

  3. Clone the release and run the installer with your domain and the email address of the first Owner. Add --without-browser on a 4 GB server.

    shell
    REPOSITORY_URL='https://github.com/heptapodwatch/heptapod.git'
    RELEASE_TAG='v0.22.0'
    INSTALL_DIR="$HOME/heptapod"
    git clone --depth 1 --branch "$RELEASE_TAG" "$REPOSITORY_URL" "$INSTALL_DIR" && cd "$INSTALL_DIR" && ./scripts/install.sh --domain monitor.example.com --owner-email you@example.com

    The script then works as in the steps above.

If the clone failed, remove its partial directory before you clone again. Never remove an existing installation or its data.

For your own commands in the installation directory, define a short alias:

shell
dc() { docker compose --env-file .env.prod "$@"; }
dc ps

If another proxy already terminates TLS on the server, publish the app on a loopback port instead of starting Caddy on 80 and 443:

shell
curl -fsSL https://heptapod.watch/install.sh | sudo bash -s -- --domain monitor.example.com --behind-proxy --port 8380

In a Git checkout, pass the same options to ./scripts/install.sh.

Forward HTTPS to http://127.0.0.1:8380, including WebSocket upgrades for /app/*; without them, live updates fall back to polling. After the install, the installer prints the TRUSTED_PROXIES line to add to .env.prod. Without it, signed links such as email verification fail behind the proxy. Never set it to *.

Alerts in this release go out by email. The default configuration only writes mail to the log. Set your SMTP server in .env.prod, then recreate the containers as described in configuration.

Add your first site. Set up backups before you rely on the instance, and read updating before the first upgrade. For a complete walkthrough on a fresh VPS, see the Hetzner example.