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:

  1. 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.)

  2. Firewall: allow 22 (from your address only), 80 and 443. Nothing else. With ufw:

    bash
    sudo ufw allow from <your-ip> to any port 22 proto tcp
    sudo ufw allow 80/tcp && sudo ufw allow 443/tcp
    sudo ufw enable

    The compose file publishes the app on 127.0.0.1:3000 only, so Docker can't bypass ufw for it.

  3. DNS: an A record for <your-domain> pointing at the server.

  4. 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.

    bash
    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 .env
  5. For a managed database, set DATABASE_URL and COMPOSE_PROFILES=https (details).

  6. docker compose up -d. The bundled Caddy serves HTTPS for KIVO_DOMAIN; or use your own proxy: Your own proxy.

  7. 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:

ImageRole
invicly/kivo:1.0.0The app, listening on port 3000
invicly/kivo-migrate:1.0.0Applies 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/kivo on port 3000, with at least one instance always on if you use the built-in scheduler (or set SCHEDULER=off and have the platform's scheduler call POST /api/cron/run every 5 minutes with Authorization: Bearer <CRON_SECRET>).
  • Run invicly/kivo-migrate with the same DATABASE_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/health for liveness and /api/health/ready for readiness.
  • Keep DATABASE_URL, AUTH_SECRET and SMTP_PASSWORD in the platform's secret store.
  • Set KIVO_CONTROL_URL=https://kivo-control.invicly.com and KIVO_LICENSE_PUBLIC_KEYS (below), and allow outbound HTTPS to it.
  • The filesystem can be read-only except /tmp and /app/.next/cache.
PlatformNotes
Azure Container AppsA container app (ingress on 3000) plus a manual Container Apps job for migrations; Azure Database for PostgreSQL
AWS App Runner or ECS on FargateA service behind an Application Load Balancer; migrations as an ECS task (aws ecs run-task) before update-service; RDS
Google Cloud RunA service with --port 3000 --min-instances 1, a Cloud Run job for migrations; Cloud SQL
DigitalOcean App PlatformA web service from invicly/kivo (Docker Hub) and a pre-deploy job from invicly/kivo-migrate; Managed PostgreSQL
Render, Railway, Fly.ioA 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

bash
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