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.
-
In your Coolify project, choose + New → Docker Image.
-
Set the image to
ghcr.io/rushlightlab/kova:0.1.0. -
Open General and set Ports Exposes to
3000. -
Open Persistent Storage and add a Volume Mount with Destination Path
/data. -
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 32KOVA_ENCRYPTION_KEY=<generated-64-hex-key>KOVA_ADMIN_EMAIL=you@example.comKOVA_ADMIN_PASSWORD=<strong-12+-char-password>KOVA_TRUSTED_PROXIES=<coolify-proxy-ip>/32Keep a backup of
KOVA_ENCRYPTION_KEYoutside Coolify. See Trusted proxy for<coolify-proxy-ip>. -
Open Domains and add
https://kova.example.com:3000(https://enables Let’s Encrypt TLS;:3000tells Coolify which container port receives proxy traffic). -
Click Deploy and open
https://kova.example.com. After changing runtime variables, click Restart; after changing the image tag or domain, click Redeploy.
Trusted proxy
Section titled “Trusted proxy”To resolve real visitor IPs through coolify-proxy, find the IP of coolify-proxy on the Docker network it shares with Kova:
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.
Docker Compose instead
Section titled “Docker Compose instead”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.
Troubleshooting
Section titled “Troubleshooting”- Sign-in returns
INVALID_ORIGIN:KOVA_BASE_URLdoes not match the browser domain. Fix the variable in Environment Variables and click Restart. - Domain does not reach Kova: Verify Ports Exposes is
3000and the Domains URL ends with:3000. - No TLS certificate: Verify DNS points at the Coolify server and ports
80/443are reachable. - Data resets after redeploy: Check that Persistent Storage mounts
/dataon the resource.