# Host on DigitalOcean

> Let your agent do it: Deploy Hermitbox on a DigitalOcean Droplet. Create it from Ubuntu 24.04 or 26.04, with at least two vCPUs and 4 GiB of memory and the page's `user-data.yaml` as its user data. If you can't act in my DigitalOcean account, walk me through each step. Once it is up, connect over SSH, check that `curl -fsS http://127.0.0.1:8080/healthz` answers `"status":"ok"`, and follow the own-machine guide to the welcome page. Never copy the API key into a file or this chat. Follow the exact steps in https://docs.hermitbox.dev/v0.2.4/hosting/digitalocean.md.

Deploy Hermitbox on a DigitalOcean Droplet with the shipped
[cloud-init user data](https://github.com/hermitbox/hermitbox/blob/c61777fdb140d97cded5ef039bce3a7e7c7a2a18/deploy/platforms/cloud-init/user-data.yaml). Its state stays on the
Droplet's disk across restarts.

Hermitbox has no DigitalOcean Marketplace image or App Platform button. App Platform has no
persistent volumes, so it can't keep a complete install.

## Create the Droplet

1. Create a Droplet from Ubuntu 24.04 or 26.04, the releases CI boots this file on. Give it at
   least two vCPUs and 4 GiB of memory, the size CI tests.
2. Paste [user-data.yaml](https://github.com/hermitbox/hermitbox/blob/c61777fdb140d97cded5ef039bce3a7e7c7a2a18/deploy/platforms/cloud-init/user-data.yaml) as the Droplet's user
   data. It runs once as root and installs Hermitbox with the release image.
3. Connect over SSH once the Droplet is up, and follow
   [Host on your own machine](https://docs.hermitbox.dev/v0.2.4/hosting/own-machine.md#verify-and-connect) to reach the welcome page.

## Verify the install

On the Droplet:

```sh
curl -fsS http://127.0.0.1:8080/healthz
```

It answers with `"status":"ok"`.

## DigitalOcean notes

None of App Platform's three storage paths keeps a whole install:

- Managed Postgres leaves sandbox data ephemeral.
- Postgres with Spaces still loses local fleet identity.
- Keeping all state in the instance loses it on replacement.

For that reason Hermitbox ships no App Platform button or stateless app spec. A Droplet keeps all
state.

The Droplet path installs Docker and its host firewall policy, and attaches no KVM device.
Container admission must enforce that policy. See [Host on your own machine](https://docs.hermitbox.dev/v0.2.4/hosting/own-machine.md) for
the rest of the setup.

[Storage limitations](https://docs.digitalocean.com/products/app-platform/how-to/store-data/),
[app specification](https://docs.digitalocean.com/products/app-platform/reference/app-spec/),
[pricing](https://www.digitalocean.com/pricing/app-platform).
