Deploy HydroGo on Hetzner Cloud
Run HydroGo directly as a single systemd binary on Ubuntu/Debian with automatic HTTPS (--ssl=auto) or behind Caddy, backed by SQLite WAL or PostgreSQL 16+.
1. Download the signed release binary
Install the single static Go executable directly onto your Hetzner server.
curl -fsSL https://github.com/hydrohq/hydrogo/releases/latest/download/install.sh | sh
hydro version 2. Initialize config and run database migrations
Create a minimal production config.yaml (or use SQLite WAL under /opt/hydro/data/hydro.db) and create your admin.
sudo install -d -m 0750 /opt/hydro /opt/hydro/data
hydro migrate --config /opt/hydro/config.yaml
hydro create-admin --config /opt/hydro/config.yaml 3. Start with built-in Automatic HTTPS or systemd
HydroGo includes embedded ACME/Let’s Encrypt TLS via --ssl=auto. Or run behind Caddy if hosting a SvelteKit/Next storefront on the same box.
sudo tee /etc/systemd/system/hydro.service >/dev/null <<'EOF'
[Unit]
Description=HydroGo Backend
After=network-online.target
Wants=network-online.target
[Service]
WorkingDirectory=/opt/hydro
ExecStart=/usr/local/bin/hydro serve --config /opt/hydro/config.yaml --ssl=auto --domain cms.example.com
Restart=always
RestartSec=3
NoNewPrivileges=true
ProtectSystem=full
ReadWritePaths=/opt/hydro/data
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable --now hydro Production hardening checklist
- Enable Hetzner Cloud Firewall allowing only ports 22, 80, and 443.
- Turn on Ed25519-signed automatic updates during 03:00–05:00 in System → Updates.
- Schedule nightly snapshots with hydro backup and test restore quarterly.