Host on Fly.io
Deploy Hermitbox on Fly.io.
Deploy Hermitbox on one Fly.io Machine with a persistent state volume. The
Fly Launch configuration names the release image, the
hermitbox_state volume, port 8080 and the /healthz check.
Launch the app
- Copy fly.toml into an empty directory. Change
primary_regionfromamsif you want another region. - Run
fly launchin that directory and keep the existing configuration. Fly Launch assigns the app a unique name and attacheshermitbox_stateto one Machine. - Read the
apiKeythe image prints once in app → Monitoring → Logs on its first successful start.
Verify the app
curl -fsS https://<app-name>.fly.dev/healthzIt answers with "status":"ok". Point the CLI at the app with its key and run
hermitbox run -- echo hello, as Connect after deployment
shows.
Fly.io notes
Keep one Machine. Don’t scale to a second Machine, since it would get an independent state volume.
Fly’s secrets store accepts values you supply, but the launch configuration generates none, so
the key appears only in the log. FLY_APP_NAME gives the HTTPS origin,
https://<app-name>.fly.dev.
The configuration asks for a shared-cpu-2x Machine with 2 GB of memory, a 10 GB volume, forced
HTTPS and a Machine that stays running.
Fly runs the image in a Machine with a writable root filesystem and its persistent
/var/lib/hermitbox mount, and the image user stays root. This configuration adds no Docker
daemon or KVM device. The process policy must pass on the actual guest kernel; see
Tiers and guarantees.
$curl -fsSL https://hbx.sh | shInstall Hermitbox and set it up for me