Skip to content

Coolify

Kova publishes a public distroless container image to GHCR, so Coolify’s Docker Image resource runs it directly with zero build step or registry credentials.

  1. In your Coolify project, choose + New → Docker Image.

  2. Set the image to ghcr.io/rushlightlab/kova:0.1.0.

  3. Open General and set Ports Exposes to 3000.

  4. Open Persistent Storage and add a Volume Mount with Destination Path /data.

  5. Open Environment Variables, switch to Developer View to paste the whole block at once, fill in the placeholders, and ensure the variables are enabled for runtime:

    KOVA_BASE_URL=https://kova.example.com
    # Encrypts saved S3 credentials (32 bytes): openssl rand -hex 32
    KOVA_ENCRYPTION_KEY=<generated-64-hex-key>
    KOVA_ADMIN_EMAIL=you@example.com
    KOVA_ADMIN_PASSWORD=<strong-12+-char-password>
    KOVA_TRUSTED_PROXIES=<coolify-proxy-ip>/32

    Keep a backup of KOVA_ENCRYPTION_KEY outside Coolify. See Trusted proxy for <coolify-proxy-ip>.

  6. Open Domains and add https://kova.example.com:3000 (https:// enables Let’s Encrypt TLS; :3000 tells Coolify which container port receives proxy traffic).

  7. Click Deploy and open https://kova.example.com. After changing runtime variables, click Restart; after changing the image tag or domain, click Redeploy.

To resolve real visitor IPs through coolify-proxy, find the IP of coolify-proxy on the Docker network it shares with Kova:

Terminal window
docker inspect coolify-proxy \
--format '{{range $name, $net := .NetworkSettings.Networks}}{{$name}} {{$net.IPAddress}}{{println}}{{end}}'
docker inspect <kova-container> \
--format '{{range $name, $net := .NetworkSettings.Networks}}{{$name}}{{println}}{{end}}'

Set KOVA_TRUSTED_PROXIES=<coolify-proxy-ip>/32 (never an entire shared network) and click Restart. If Kova also sits behind Cloudflare CDN/Tunnel, see Reverse Proxies & Trusted IPs.

You can also deploy Kova in Coolify as a Docker Compose resource. Start from the Dokploy compose file, replace env_file: with an environment: block of ${VAR} references (for example KOVA_BASE_URL: ${KOVA_BASE_URL} and KOVA_ENCRYPTION_KEY: ${KOVA_ENCRYPTION_KEY}) so Coolify renders each variable in its UI as editable fields, and assign your domain to the kova service on port 3000.

  • Sign-in returns INVALID_ORIGIN: KOVA_BASE_URL does not match the browser domain. Fix the variable in Environment Variables and click Restart.
  • Domain does not reach Kova: Verify Ports Exposes is 3000 and the Domains URL ends with :3000.
  • No TLS certificate: Verify DNS points at the Coolify server and ports 80/443 are reachable.
  • Data resets after redeploy: Check that Persistent Storage mounts /data on the resource.