Skip to main content
This guide covers deploying Vibe Kanban Cloud on any Linux server using Docker Compose. This approach works with any cloud provider (AWS, DigitalOcean, Hetzner, etc.) or on-premises server. A self-hosted server gives Vibe Kanban its team features: organisations, projects, issues and, with the optional relay, remote access. Vibe Kanban no longer uses the hosted cloud, so a server you run is the only way to use these features. See the self-hosting overview for how the pieces fit together.

Prerequisites

  • A Linux server with:
    • Docker and Docker Compose v2.0+ installed
    • 2GB RAM minimum (4GB recommended)
    • 10GB disk space
    • A domain name pointing to your server
  • SSL certificate (we’ll use Caddy for automatic HTTPS)
  • One authentication method:
    • OAuth credentials from GitHub or Google, or
    • bootstrap local auth credentials for a single self-hosted admin user

Step 1: Prepare Your Server

SSH into your server and install Docker if not already installed:
Clone the Vibe Kanban repository:

Step 2: Configure Authentication

Choose one of these options:

Option A: OAuth

Update your OAuth application callback URLs to use your domain:
  • Authorization callback URL: https://your-domain.com/v1/oauth/github/callback

Option B: Bootstrap Local Auth

If you do not want to configure OAuth yet, you can bootstrap a single local admin login:
This is useful for initial self-hosted setup, but it is a single shared credential pair rather than a full multi-user identity system.

Step 3: Create Environment File

Generate a secure JWT secret:
Create .env.remote in the repository root:
.env.remote

Step 4: Create Production Docker Compose

Create docker-compose.prod.yml in the crates/remote directory:
docker-compose.prod.yml

Step 5: Create Caddyfile

Create a Caddyfile in the crates/remote directory for automatic HTTPS (core app/API):
Caddyfile
This base deployment serves the main Cloud app/API only. Relay/tunnel support is optional and requires additional relay routing plus wildcard DNS/TLS for your relay domain.

Step 6: Deploy

The first build takes 10-15 minutes. Subsequent deployments are faster as Docker caches the build layers.

Step 7: Verify Deployment

  1. Open https://your-domain.com in your browser
  2. You should see the Vibe Kanban Cloud login page
  3. Sign in with your configured auth method
  4. Create your first organisation and project

Step 8: Connect Vibe Kanban to Your Server

On each developer’s machine, start Vibe Kanban with VK_SHARED_API_BASE set to your domain. The released npx vibe-kanban package reads it at startup, so you don’t need to rebuild anything:
Sign in with the same auth method as in Step 7. Projects, issues and organisation settings then appear in the app. For Windows and other options, see Connect Vibe Kanban to your server.

Optional: Enable the relay for remote access

The relay lets paired devices reach a machine running Vibe Kanban, for remote access. Relay/tunnel support requires:
  1. A running relay-server service
  2. Reverse proxy routing for both relay.your-domain.com and *.relay.your-domain.com
  3. A wildcard certificate for *.relay.your-domain.com (or equivalent managed TLS at your edge)
  4. VITE_RELAY_API_BASE_URL set to your public relay API base URL before building remote-server

Add relay-server to docker compose

docker-compose.prod.yml

Add relay proxy routes

Your reverse proxy must route:
  • relay.your-domain.com -> relay-server:8082
  • *.relay.your-domain.com -> relay-server:8082
Standard ACME HTTP challenge does not issue wildcard certificates. For wildcard relay hostnames, use a DNS-based ACME challenge or another edge provider that can terminate wildcard TLS certificates.

Connect Vibe Kanban to the relay

Start Vibe Kanban on each host machine with both your server and relay URLs. No rebuild is needed:
VK_SHARED_RELAY_API_BASE must match the VITE_RELAY_API_BASE_URL you built remote-server with.
Run Vibe Kanban 0.1.47 or newer on every host machine you make reachable through the relay. From 0.1.47, Vibe Kanban requires a valid signature from a paired device on every relayed request except the pairing steps themselves. Older versions don’t check every route.

Updating

To update to a new version:

Backup and Restore

Backup Database

Restore Database

Monitoring

View Logs

Check Service Health

Troubleshooting

Caddy automatically obtains SSL certificates from Let’s Encrypt. Ensure:
  • Your domain’s DNS is correctly pointing to your server
  • Ports 80 and 443 are open in your firewall
  • Your domain is correctly set in the environment
The server may start before the database is ready. Check:
ElectricSQL requires the electric_sync database user, which the Remote Server creates automatically on first startup. If ElectricSQL cannot connect:
  1. Check that the Remote Server started successfully and ran its migrations
  2. Verify ELECTRIC_ROLE_PASSWORD matches in both your .env.remote and the Electric service config
  3. Restart ElectricSQL after the Remote Server is healthy:
If the build fails with memory errors, you may need a server with more RAM or add swap: