Terrarium on Hetzner Cloud
Official references:
- Hetzner Cloud changelog
- hcloud CLI manual
- hcloud ssh-key create
- hcloud server create
- hcloud volume create
- hcloud volume attach
Recommended shape
- Ubuntu image:
ubuntu-24.04 - Boot disk: keep the normal server root disk
- Data disk: add a separate Hetzner Cloud Volume
- Terrarium mode:
--storage-mode disk
Console flow
- Add your SSH key to the Hetzner Cloud project.
- Create a new Ubuntu 24.04 server and select that SSH key.
- Create a Volume in the same location as the server.
- Attach the Volume to the server.
- SSH into the server and install Terrarium with
diskmode.
Example install:
bash
curl -fsSL https://github.com/terion-name/terrarium/releases/latest/download/install.sh | bash -s -- \
--email admin@your-domain.tld \
--acme-email certs@your-domain.tld \
--idp local \
--storage-mode disk \
--storage-source autohcloud flow
Create the SSH key:
bash
hcloud ssh-key create --name terrarium --public-key-from-file ~/.ssh/id_ed25519.pubCreate the Volume:
bash
hcloud volume create \
--name terrarium-data \
--size 200 \
--location nbg1Create the server:
bash
hcloud server create \
--name terrarium-1 \
--type cpx31 \
--image ubuntu-24.04 \
--location nbg1 \
--ssh-key terrariumAttach the Volume:
bash
hcloud volume attach --server terrarium-1 terrarium-dataThen SSH in and install Terrarium:
bash
curl -fsSL https://github.com/terion-name/terrarium/releases/latest/download/install.sh | bash -s -- \
--email admin@your-domain.tld \
--acme-email certs@your-domain.tld \
--idp local \
--storage-mode disk \
--storage-source autoNotes
- Hetzner’s current CLI uses
--location;--datacenteris deprecated in the currenthcloud server createmanual. hcloud server createcan also pre-attach a volume with--volume, but keeping the steps separate is easier to reason about when you want Terrarium to claim exactly one dedicated data disk.