Deploy kan.bn
open-source project management alternative to Trello
Just deployed
/var/lib/postgresql/data
Just deployed
Deploy and Host Kan on Railway
Kan is an open-source project management tool and Trello alternative. It offers kanban boards with workspace collaboration, board visibility controls, labels and filters, comments, activity logging, Trello imports, and reusable board templates—all self-hosted under the AGPLv3 license.
About Hosting Kan
Kan is a Next.js application that requires a PostgreSQL database. For a minimal deployment, you only need the Kan container and a PostgreSQL database with two required environment variables: BETTER_AUTH_SECRET for session encryption and NEXT_PUBLIC_BASE_URL for your deployment URL. The first user to sign up can start creating workspaces and boards immediately.
Common Use Cases
- Self-host a Trello-like kanban board for personal task management or team project tracking with full data ownership
- Migrate from Trello using the built-in import feature while maintaining your existing board structure and cards
- Run a private project management tool for your organization with workspace collaboration, member invites, and board visibility controls
Dependencies for Kan Hosting
- PostgreSQL (for storing boards, cards, users, and workspace data)
Deployment Dependencies
Implementation Details
Required environment variables:
# Base URL of your Kan instance
NEXT_PUBLIC_BASE_URL=https://your-kan-instance.railway.app
# Auth encryption secret (generate a random 32+ character string)
BETTER_AUTH_SECRET=your_random_secret_here
# PostgreSQL connection string
POSTGRES_URL=postgresql://user:password@host:5432/database
# Enable email/password authentication
NEXT_PUBLIC_ALLOW_CREDENTIALS=true
Kan exposes port 3000 for the web UI. For a full list of environment variables including OAuth, SMTP, S3 storage, and other optional features, see the Environment Variables documentation.
Why Deploy Kan on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Kan on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content