Skip to content

Hetzner deployment

This page adds the Hetzner Cloud specifics to the install guide: server type, firewall, Docker on a fresh Ubuntu VPS, other Linux distributions and recovery from a failed first install.

Setup amd64 arm64 Size
Without Lighthouse (--without-browser) CX23 CAX11 2 vCPU, 4 GB RAM, 40 GB disk
With Lighthouse (installer default) CX33 CAX21 4 vCPU, 8 GB RAM, 80 GB disk
  • Use Ubuntu 24.04. The release images ghcr.io/heptapodwatch/heptapod-app and ghcr.io/heptapodwatch/heptapod-lighthouse exist for amd64 and, from v0.5.0 on, for arm64.
  • Keep at least 12 GiB free on the Docker filesystem: 6 GiB for images and 6 GiB for backups. Larger data needs more backup space.
  • Capacity depends on the mix of checks, not only the number of sites. See the capacity table.
  1. Create the server with Ubuntu 24.04.
  2. In the Hetzner firewall, allow inbound TCP 22, 80 and 443 only.
  3. Point a DNS A record at the server. Add AAAA only with working IPv6.

Caddy handles TLS on its own. The default mode needs host ports 80 and 443 free. If another web server or proxy holds them, use --behind-proxy.

On the fresh server, run as a sudo-capable user:

Terminal window
curl -fsSL https://heptapod.watch/install.sh | sudo bash -s -- --install-docker --domain monitor.example.com --owner-email owner@example.com --without-browser
  • --install-docker installs Docker Engine, the Compose plugin, curl, jq and OpenSSL as in the prerequisites below. It changes nothing when Docker is already installed.
  • Leave out --without-browser on a CX33 or CAX21 to run Lighthouse.
  • The installer prints the first Owner’s password once. Public registration is disabled.

The install guide explains every step and option, a Git checkout and a reverse proxy.

For a Git checkout, install Docker Engine and the Compose plugin from Docker’s apt repository:

Terminal window
sudo apt-get update
sudo apt-get install -y ca-certificates curl git jq openssl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable --now docker
sudo usermod -aG docker "$USER"

Docker group membership grants root-equivalent access. Log out and back in, then check access in the new session:

Terminal window
docker ps
  • Continue only when docker ps works without sudo.
  • Docker Compose v5 is required (newest version we verified: 5.7.0). docker compose config --help must list --environment. The installer checks this.
  • For a release bundle without Git, use the export installation command.

The one-line installer is tested on Ubuntu and Debian. On another Linux distribution it installs once Docker is there, and prints that the distribution is not tested. It does not install Docker there: --install-docker uses Docker’s apt repository.

Requirements:

  • An amd64 (x86_64) or arm64 (aarch64) server.
  • Docker Engine with Docker Compose v5.
  • Bash, curl, tar, gzip, awk, grep, sed, OpenSSL and jq.
  • coreutils (including sha256sum, df and sync), findutils (find and xargs), and flock (util-linux).
  • Git for the Git checkout path.
  • Host ports 80 and 443 free. If another web server or proxy holds them, use --behind-proxy.

Install Docker Engine for your distribution from Docker’s install guide, then start it and check both versions:

Terminal window
sudo systemctl enable --now docker
sudo docker version
sudo docker compose version

docker compose version must report version 5. The installer checks for the required config --environment option.

Then install with one of these paths. Add --without-browser on a 4 GB server.

  • The one-line installer, as root, into /opt/heptapod:

    Terminal window
    curl -fsSL https://heptapod.watch/install.sh | sudo bash -s -- --domain monitor.example.com --owner-email you@example.com
  • A Git checkout, as a user in the docker group. Replace vX.Y.Z with the current tag from the releases page:

    Terminal window
    RELEASE_TAG='vX.Y.Z'
    git clone --depth 1 --branch "$RELEASE_TAG" https://github.com/heptapodwatch/heptapod.git "$HOME/heptapod" && cd "$HOME/heptapod" && ./scripts/install.sh --domain monitor.example.com --owner-email you@example.com

Rootless containers and SELinux:

  • For rootless Docker, use the Git checkout path as the user running Docker, without sudo. Rootless Docker cannot publish ports below 1024 by default. Add --behind-proxy --port 8380 and let your reverse proxy serve HTTPS.
  • Behind a proxy, set TRUSTED_PROXIES to the line the installer prints. It lists the subnets of the installation’s Docker networks, because the address the app sees for your proxy can change when a container is recreated.
  • Use Docker Engine, not Podman, for installation. Podman can report multiple digests for a release image, which the installer refuses to pin.
  • The shipped production configuration uses named Docker volumes, not host bind mounts, so it needs no host-directory relabelling. If you add bind mounts on SELinux, label them for container access; do not disable SELinux.

If the first install failed before the app started, the installer printed a recovery block ending in # END INSTALL RECOVERY.

  1. Fix the reported image access, network or port error.
  2. Paste the whole recovery block. It pins the verified release images, starts the services and creates the Owner.

A rerun of the installer prints the same block while no release image is pinned.

On a stopped installation with pinned images, a rerun prints this start path instead of an upgrade. Run the Owner command only after the services are healthy:

Terminal window
sh -ec '. ./scripts/worker-memory-preflight.sh; require_worker_memory'
docker compose --env-file .env.prod up -d --wait
docker compose --env-file .env.prod exec -T app php artisan heptapod:user:create-owner --email=owner@example.com --if-missing --no-interaction

The installer never runs these commands itself. On an installation that is running, a rerun only validates .env.prod, reports keys it adds and prints the ./scripts/upgrade.sh command.