# Host on Coolify

> Let your agent do it: Deploy Hermitbox on my Coolify installation. Add a Docker Compose Empty service with the page's `compose.yaml`. If you can't act in Coolify yourself, walk me through each step. Have me find the key as `SERVICE_PASSWORD_64_HERMITBOX` in the service's environment variables, check that `/healthz` answers `"status":"ok"`, set `HERMITBOX_API_URL` and `HERMITBOX_API_KEY` privately for the CLI, and run `hermitbox run -- echo hello`. Never copy the key into a file or this chat. Follow the exact steps in https://docs.hermitbox.dev/v0.2.4/hosting/coolify.md.

Deploy Hermitbox as a Docker Compose service on a host where you already run Coolify. Paste the
[Compose service](https://github.com/hermitbox/hermitbox/blob/c61777fdb140d97cded5ef039bce3a7e7c7a2a18/deploy/platforms/coolify/compose.yaml) into Coolify.

Coolify's service catalog doesn't list Hermitbox yet, so you add it as an empty Compose service.

## Add the service

1. In your Coolify installation, add a **Docker Compose Empty** service.
2. Paste [compose.yaml](https://github.com/hermitbox/hermitbox/blob/c61777fdb140d97cded5ef039bce3a7e7c7a2a18/deploy/platforms/coolify/compose.yaml) and deploy it. Coolify
   assigns the proxy domain and generates the bootstrap key.
3. Find the key as `SERVICE_PASSWORD_64_HERMITBOX` in **service → Configuration → Environment
   Variables**.

## Verify the service

```sh
curl -fsS https://<service-address>/healthz
```

It answers with `"status":"ok"`. Point the CLI at the service with its key and run
`hermitbox run -- echo hello`, as [Connect after deployment](https://docs.hermitbox.dev/v0.2.4/hosting.md#connect-after-deployment)
shows.

## Coolify notes

`SERVICE_URL_HERMITBOX_8080` asks Coolify to assign the proxy domain, and the service uses it as
`HERMITBOX_PUBLIC_URL`. `SERVICE_PASSWORD_64_HERMITBOX` generates the bootstrap key. The file
also gives the service a health check on `/healthz` and restarts it unless you stop it.

The generated URL follows your Coolify installation's domain and TLS policy. Configure HTTPS there
before you deploy.

Keep the named volume, the image user, the writable container root and Docker's ordinary security
policy. Coolify runs on your host, so Landlock and seccomp availability comes from that host. No
engine socket, privilege or KVM device is passed to Hermitbox; see
[Tiers and guarantees](https://docs.hermitbox.dev/v0.2.4/hosting.md#tiers-and-guarantees).

[Compose](https://coolify.io/docs/services/configuration/docker-compose),
[generated variables](https://coolify.io/docs/services/configuration/environment-variables),
[pricing](https://coolify.io/pricing/).
