Skip to main content
HydroGo
← All deploy guides Production Tested Ampere A1 ARM64 · 2+ OCPU · Postgres 16 RLS

Deploy HydroGo on Oracle Cloud (ARM64)

Production blueprint used by real commerce workloads: ARM64 binary compiled natively, non-superuser PostgreSQL 16 role with forced RLS, Caddy + Cloudflare proxy.

01

1. Create a non-superuser Postgres role (for Row-Level Security)

HydroGo enforces PostgreSQL Row-Level Security. Never connect with a superuser or BYPASSRLS role in production.

sudo -u postgres psql <<'EOF'
CREATE ROLE hydro_app LOGIN PASSWORD 'strong-secret-here' NOSUPERUSER CREATEDB NOCREATEROLE NOBYPASSRLS;
CREATE DATABASE hydro OWNER hydro_app;
EOF
02

2. Install ARM64 binary & isolate secrets in /etc/hydro/hydro.env

Keep HYDRO_DATABASE_DSN and payment/HMAC secrets out of YAML files and git repositories (chmod 600).

OS=linux ARCH=arm64
curl -fL "https://github.com/hydrohq/hydrogo/releases/latest/download/hydrogo_${OS}_${ARCH}.tar.gz" | sudo tar -xz -C /usr/local/bin hydro
sudo install -d -m 0750 /opt/hydro/data
hydro migrate --config /opt/hydro/config.yaml
03

3. Verify deployment guards with hydro doctor

Run the built-in production readiness diagnostic before opening traffic.

hydro doctor --config /opt/hydro/config.yaml
Checklist

Production hardening checklist

  • Open OCI Security List / iptables for ports 80/443; restrict Caddy origin to Cloudflare IP ranges if proxied.
  • Keep HYDRO_DATABASE_DSN strictly in EnvironmentFile (do not duplicate in YAML).
  • Enable automatic updates on the minor or patch channel with 60s readiness rollback.