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.
Server types
Section titled “Server types”| 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-appandghcr.io/heptapodwatch/heptapod-lighthouseexist 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.
Prepare the server
Section titled “Prepare the server”- Create the server with Ubuntu 24.04.
- In the Hetzner firewall, allow inbound TCP 22, 80 and 443 only.
- 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.
Install with the one-line installer
Section titled “Install with the one-line installer”On the fresh server, run as a sudo-capable user:
curl -fsSL https://heptapod.watch/install.sh | sudo bash -s -- --install-docker --domain monitor.example.com --owner-email owner@example.com --without-browser--install-dockerinstalls 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-browseron 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.
Fresh VPS prerequisites
Section titled “Fresh VPS prerequisites”For a Git checkout, install Docker Engine and the Compose plugin from Docker’s apt repository:
sudo apt-get updatesudo apt-get install -y ca-certificates curl git jq opensslsudo install -m 0755 -d /etc/apt/keyringssudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.ascsudo chmod a+r /etc/apt/keyrings/docker.ascecho "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/nullsudo apt-get updatesudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginsudo systemctl enable --now dockersudo usermod -aG docker "$USER"Docker group membership grants root-equivalent access. Log out and back in, then check access in the new session:
docker ps- Continue only when
docker psworks without sudo. - Docker Compose v5 is required (newest version we verified: 5.7.0).
docker compose config --helpmust list--environment. The installer checks this. - For a release bundle without Git, use the export installation command.
Other Linux distributions
Section titled “Other Linux distributions”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:
sudo systemctl enable --now dockersudo docker versionsudo docker compose versiondocker 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
dockergroup. ReplacevX.Y.Zwith 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 8380and let your reverse proxy serve HTTPS. - Behind a proxy, set
TRUSTED_PROXIESto 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.
Recover a failed first install
Section titled “Recover a failed first install”If the first install failed before the app started, the installer printed a recovery block ending in # END INSTALL RECOVERY.
- Fix the reported image access, network or port error.
- 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.
Start a stopped installation
Section titled “Start a stopped installation”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:
sh -ec '. ./scripts/worker-memory-preflight.sh; require_worker_memory'docker compose --env-file .env.prod up -d --waitdocker compose --env-file .env.prod exec -T app php artisan heptapod:user:create-owner --email=owner@example.com --if-missing --no-interactionThe 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.
After the install
Section titled “After the install”- Set up backups and read updating before the first upgrade.
- Restore, key rotation, worker sizing and password recovery are in the operations reference.
- To capture test mail on a disposable install, use the Mailpit recipe.