---
title: "Deploy kan.bn"
description: "open-source project management alternative to Trello"
category: "Other"
url: https://railway.com/deploy/kanbn-1
---

# Deploy kan.bn

open-source project management alternative to Trello

**[Deploy kan.bn on Railway](https://railway.com/template/kanbn-1)**

- **Creator:** Techulus
- **Category:** Other
- **Total deploys:** 8

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

### kan https://kan.bn/favicon.ico

- **Image:** ghcr.io/kanbn/kan:latest
- **Public domain:** Yes

## Documentation

# 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

- [Kan Docker Image](https://ghcr.io/kanbn/kan)
- [Kan Documentation](https://docs.kan.bn)
- [Kan GitHub Repository](https://github.com/kanbn/kan)

### 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](https://github.com/kanbn/kan?tab=readme-ov-file#environment-variables-).

## 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.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/kanbn-1
