---
title: "Deploy Kan Trello Alternative (Postgres, Redis, S3 uploads)"
description: "Open-source kanban boards for teams with Trello import and a secure login."
category: "Other"
url: https://railway.com/deploy/kan-trello-alternative-postgres-redis-s3
---

# Deploy Kan Trello Alternative (Postgres, Redis, S3 uploads)

Open-source kanban boards for teams with Trello import and a secure login.

**[Deploy Kan Trello Alternative (Postgres, Redis, S3 uploads) on Railway](https://railway.com/template/kan-trello-alternative-postgres-redis-s3)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/kan-trello-alternative-postgres-redis-s3/manifest.json

- **Creator:** Tracklayer
- **Category:** Other
- **Total deploys:** 1

## Template content

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

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18.6@sha256:4fc833b43d2aaf6ecc9b18615f5533602b723a32d0e2efe2dae8ca0f7217c863

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.11@sha256:b0b01167ff47bc3868e56a967895a26be4230891a1f42a78ab61cdd227accc8d
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Kan https://cdn.jsdelivr.net/gh/selfhst/icons/svg/kan.svg

- **Source:** baranberkay96/kan-railway
- **Health check:** /api/health
- **Public domain:** Yes

## Buckets

- **Bucket**

## Documentation

# Deploy and Host Kan with Railway

Kan is an open-source Trello alternative: workspaces, boards, lists and cards with labels, checklists, comments, attachments and a Trello importer. This template runs Kan with PostgreSQL 18, Redis and a Railway Bucket for files, and creates your first account before the site goes online.

## About Hosting Kan

Kan is a Next.js application backed by PostgreSQL. It applies its database migrations on start, uses Redis (optional upstream) to keep API rate limits consistent across restarts and replicas, and stores avatars and card attachments in S3-compatible storage. Browsers upload straight to the bucket and read files through signed URLs, so the bucket stays private.

The upstream image has no shell, so the template adds a small Node.js start script. It retries migrations while Postgres starts, sets the Bucket's CORS rule for your domain, and creates the first account from template variables on a temporary server bound to localhost. Public sign-up stays off by default: people you invite to a workspace can register, strangers cannot.

## Common Use Cases

- Run team kanban boards for product, support or content work
- Move boards off Trello with the built-in importer
- Keep project files and discussions on infrastructure you control
- Give scripts and AI agents access through Kan's REST API and MCP endpoint

## Dependencies for Kan Hosting

- Kan 0.7.0 (`ghcr.io/kanbn/kan`, pinned by digest)
- PostgreSQL 18 (Railway's `postgres-ssl` image)
- Redis 8.2 for rate limiting
- A Railway Bucket for avatars and attachments

### Deployment Dependencies

- Kan source and releases: https://github.com/kanbn/kan
- Kan documentation: https://docs.kan.bn
- Railway Buckets: https://docs.railway.com/guides/storage-buckets

### Implementation Details

| Service | What it does | Public |
|---|---|---|
| Kan | Web app and API (Next.js, port 3000), migrations on start | yes |
| Postgres | All Kan data | no |
| Redis | API rate-limit store | no |
| Bucket | Avatars and card attachments (private, signed URLs) | no |

**First login**

1. Open the **Kan** service's public URL.
2. Sign in with `KAN_ADMIN_EMAIL` (default `admin@example.com`) and the generated `KAN_ADMIN_PASSWORD` from the Kan service's Variables tab.
3. Create your workspace, then update your name, e-mail and password in Settings.

**Adding teammates.** With `NEXT_PUBLIC_DISABLE_SIGN_UP=true`, invite people from the workspace Members page; an invited address can then create its account on the sign-up page, even without e-mail delivery. Set the variable to `false` for open sign-up.

**E-mail (optional).** Invitations, magic links and password resets use SMTP (`SMTP_*`, `EMAIL_FROM`). Railway allows outbound SMTP on the Pro plan.

**Uploads.** The Bucket variables are filled in for you. On every start the Kan service sets the Bucket's CORS rule to `NEXT_PUBLIC_BASE_URL`.

**Custom domain.** Add it to the Kan service, set `NEXT_PUBLIC_BASE_URL` to `https://{your-domain}` and redeploy.

**Scaling.** Kan is stateless; raise the replica count of the Kan service. Rate limits are shared through Redis.

**Versions.** The image is pinned in `services/kan/Dockerfile` (`KAN_IMAGE`, tag and digest). To upgrade, use a newer release tag and digest from the Kan releases page and redeploy; migrations run on start. Kan is still pre-1.0, so read the release notes and back up Postgres first.

**Resources.** Measured on Railway: Kan about 0.20-0.24 GB RAM, Postgres 0.11 GB, Redis 0.04 GB, near-zero idle CPU. Runs on Trial, Hobby and Pro; expect roughly $4-6 per month for a small team.

This is a community template; it is not affiliated with the Kan project. Kan is licensed under AGPL-3.0.

### Why Deploy Kan on Railway?

Railway runs Kan, Postgres, Redis and file storage as one project with private networking, volumes and HTTPS. You get a ready board tool with a secured first account in minutes, and you can scale, add a domain or upgrade the pinned version from the dashboard.


## 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) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/kan-trello-alternative-postgres-redis-s3
