Dokploy
Dokploy manages Traefik TLS and routes your domain over dokploy-network, so Kova’s Compose service uses expose and must not publish a host ports: mapping.
1. Create the service
Section titled “1. Create the service”In your Dokploy project, click Create Service → Compose (Raw / editor mode).
2. Paste the compose file
Section titled “2. Paste the compose file”services: kova: image: ghcr.io/rushlightlab/kova:0.1.0 restart: unless-stopped read_only: true tmpfs: - /tmp cap_drop: - ALL security_opt: - no-new-privileges:true stop_grace_period: 15s expose: - "3000" env_file: - .env volumes: - kova_data:/data
volumes: kova_data:Dokploy writes the service’s Environment tab to .env, and env_file: .env loads every variable (including optional OIDC or storage settings you add later) into Kova. Without env_file: .env (or explicit environment: entries), variables never reach the container.
3. Set environment variables & domains
Section titled “3. Set environment variables & domains”-
In the Environment tab, paste and fill in:
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=<traefik-ip>/32Keep a backup of
KOVA_ENCRYPTION_KEYin a password manager outside Dokploy. Replace<traefik-ip>with the/32address from Trusted proxy. -
In Domains, click Add Domain, select the
kovaservice, set Container Port to3000, enable HTTPS, and pick Let’s Encrypt. -
Click Deploy and open
https://kova.example.com. Redeploy after any change to Environment, Domains, or the Compose file.
Trusted proxy
Section titled “Trusted proxy”Set KOVA_TRUSTED_PROXIES to the dokploy-traefik container IP on dokploy-network as a single /32:
docker inspect dokploy-traefik \ --format '{{(index .NetworkSettings.Networks "dokploy-network").IPAddress}}'Set KOVA_TRUSTED_PROXIES=<ip>/32 in Environment and redeploy. Do not list the entire dokploy-network subnet—other apps share that network, and listing it lets them spoof forwarded client IPs. If Kova also sits behind Cloudflare CDN/Tunnel, see Reverse Proxies & Trusted IPs.
Upgrade
Section titled “Upgrade”Back up /data/kova.db (see Backups & Key Rotation), bump ghcr.io/rushlightlab/kova:0.1.0 to the new release tag in the Compose editor, and click Deploy.
Troubleshooting
Section titled “Troubleshooting”- Pull fails with
denied: denied: The image is public, so this almost always means a staleghcr.iocredential on the host. Rundocker logout ghcr.io && docker pull ghcr.io/rushlightlab/kova:0.1.0on the server (or remove the staleghcr.ioregistry entry in Dokploy) and redeploy. - Sign-in returns
INVALID_ORIGIN:KOVA_BASE_URLdoes not match the browser origin (check forhttp://vshttps://or leftoverkova.example.com). Fix it in Environment and redeploy. - HTTPS shows a
526or Traefik’s default certificate: Ensure Let’s Encrypt is selected under Domains and redeploy. Behind Cloudflare, use Full (strict) once the origin certificate is valid. address already in use: The Compose file publishes a hostports:mapping. Replace it withexpose: ["3000"]and route via Domains.- Variables have no effect: Confirm
env_file: .envis present underkova:and click Deploy again so the running container recreates with the updated.env.