Install Kivo
Other clouds & platforms
Hetzner, Linode, Vultr, OVH, Oracle, Render, Fly.io, Cloud Run…
Kivo runs anywhere you can run a Linux container (amd64) next to PostgreSQL 16, from the published images invicly/kivo and invicly/kivo-migrate. This page covers any Linux VM (Hetzner, Linode/Akamai, OVHcloud, Oracle Cloud, Vultr, Scaleway, IBM Cloud, Alibaba Cloud, on-premises) and container platforms. For Kubernetes see Kubernetes.
Replace everything in <angle brackets>, and every change-me, with your own values.
Any Linux VM
The same steps as the cloud guides, without the provider's CLI:
Create an Ubuntu 24.04 (or Debian 12) x86_64 server with 2 vCPU and 2–4 GB RAM, and a static public IP. (On ARM plans such as Hetzner CAX or Oracle Ampere, the amd64 images don't run natively.)
Firewall: allow 22 (from your address only), 80 and 443. Nothing else. With
ufw:sudo ufw allow from <your-ip> to any port 22 proto tcp sudo ufw allow 80/tcp && sudo ufw allow 443/tcp sudo ufw enableThe compose file publishes the app on
127.0.0.1:3000only, so Docker can't bypassufwfor it.DNS: an
Arecord for<your-domain>pointing at the server.Install Docker and the Compose plugin, download the two files to
/opt/kivo, and fill in.env(the Kivo Control lines are already set): Your own server.sudo mkdir -p /opt/kivo && sudo chown $USER /opt/kivo && cd /opt/kivo curl -fsSL https://kivo-control.invicly.com/install/files/docker-compose.yml -o docker-compose.yml curl -fsSL https://kivo-control.invicly.com/install/files/kivo.env -o .env && chmod 600 .envFor a managed database, set
DATABASE_URLandCOMPOSE_PROFILES=https(details).docker compose up -d. The bundled Caddy serves HTTPS forKIVO_DOMAIN; or use your own proxy: Your own proxy.Open
https://<your-domain>/register, create the first workspace, and activate the license in Settings → License (Connect & activate).
Backups, restores and updates work as in Self-hosting.
Container platforms
Use the two published images directly — nothing to build:
| Image | Role |
|---|---|
invicly/kivo:1.0.0 | The app, listening on port 3000 |
invicly/kivo-migrate:1.0.0 | Applies migrations (npx prisma migrate deploy) and exits |
Both are on Docker Hub and built for linux/amd64. If your platform only pulls from its own registry, copy them there first (for example docker pull invicly/kivo:1.0.0, docker tag, docker push).
On any platform:
- Run
invicly/kivoon port 3000, with at least one instance always on if you use the built-in scheduler (or setSCHEDULER=offand have the platform's scheduler callPOST /api/cron/runevery 5 minutes withAuthorization: Bearer <CRON_SECRET>). - Run
invicly/kivo-migratewith the sameDATABASE_URL, as a one-off job (or pre-deploy step) before each new version, and wait for it to exit 0. Always use the same version tag for both images. - Use
/api/healthfor liveness and/api/health/readyfor readiness. - Keep
DATABASE_URL,AUTH_SECRETandSMTP_PASSWORDin the platform's secret store. - Set
KIVO_CONTROL_URL=https://kivo-control.invicly.comandKIVO_LICENSE_PUBLIC_KEYS(below), and allow outbound HTTPS to it. - The filesystem can be read-only except
/tmpand/app/.next/cache.
| Platform | Notes |
|---|---|
| Azure Container Apps | A container app (ingress on 3000) plus a manual Container Apps job for migrations; Azure Database for PostgreSQL |
| AWS App Runner or ECS on Fargate | A service behind an Application Load Balancer; migrations as an ECS task (aws ecs run-task) before update-service; RDS |
| Google Cloud Run | A service with --port 3000 --min-instances 1, a Cloud Run job for migrations; Cloud SQL |
| DigitalOcean App Platform | A web service from invicly/kivo (Docker Hub) and a pre-deploy job from invicly/kivo-migrate; Managed PostgreSQL |
| Render, Railway, Fly.io | A web service from the image invicly/kivo:1.0.0; run invicly/kivo-migrate as a pre-deploy job, or npx prisma migrate deploy in the migrate image as the release command |
Set TRUSTED_PROXY_HOPS to the number of proxies that append to X-Forwarded-For (usually 1; 2 with a CDN in front).
Kivo Control settings for every platform
KIVO_CONTROL_URL=https://kivo-control.invicly.com
KIVO_LICENSE_PUBLIC_KEYS="lic-2026-09:MCowBQYDK2VwAyEAzWdTL0qB3C7ZDkfbdcn0u4MADyzGFR9suPCuNkf8mbQ="
KIVO_INSTANCE_NAME=<a name you'll recognise in the portal>Next