Self-hosted app·Tasks, kanban and projects
Kan hosting in Switzerland self-hosting Kan with Docker on a VPS in ALP1.
Kan hosting on a Swiss VPS in ALP1: Docker Compose, PostgreSQL 15, S3 attachments and the 2 GB Starter plan. What to change before going live.
- Next.js
- PostgreSQL
- Docker
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. Kan runs comfortably on our Cloud VPS range, and for a single team the Starter plan is enough: 2 vCPU, 2 GB RAM, 80 GB NVMe and 10 TB of monthly transfer for $6.99 a month, on our ALP1 site in the Swiss Alps. Kan ships as three containers (a one-shot migration job, the Next.js web app and PostgreSQL 15), all available as prebuilt images, so the small plan never has to compile anything.
The decision that matters most is not the plan size. The upstream docker-compose.yml publishes PostgreSQL as 5432:5432, and Docker routes published ports in the nat table, before the INPUT chain that ufw and most hand-written rules filter. A stock deployment therefore puts your database on the public internet whatever your firewall says. Delete that mapping before the first docker compose up. The second point to plan for on day one: avatars and card attachments only work with an S3 bucket behind them.
02/06
What Kan is and who maintains it.
Kan is an open-source kanban tool aimed squarely at people leaving Trello. It has boards with per-board visibility, workspaces with invited members and customisable role permissions, labels and filters, comments, a per-card activity log, board templates and an importer for existing Trello boards. Releases in 2026 added webhooks, API keys, workspace-prefixed ticket numbers on cards and an MCP server that lets AI clients read and edit boards through the API. Under the hood it is a TypeScript monorepo on Next.js, tRPC, Better Auth and Drizzle ORM, licensed AGPLv3 and developed in the open at kanbn/kan on GitHub, where releases are cut by the project's lead maintainer (GitHub user hjball). The same team sells a hosted edition at kan.bn; self-hosting is the free route.
The current release on 4 November 2026 is v0.6.0, published on 29 June 2026. Every GitHub release so far carries the pre-release label and the version number still starts with zero, and both should be read literally. v0.5.5 (March 2026) moved database migrations into a separate kan-migrate image and broke older compose files; v0.5.6, a week later, was a security fix the maintainers asked everyone to install. For internal team boards Kan is entirely usable, on the condition that you take a database dump before every upgrade. Since v0.6.0 the web container runs as a non-root user (UID 1000), which is one less thing to harden yourself.
The AGPL has one practical consequence for hosting. Running Kan unmodified for your team creates no obligation beyond keeping the licence notices intact. If you patch the code and let users reach your patched version over the network, you must offer those users its source.

Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
Kan's documentation publishes no hardware minimums, so the sizing below is our own. The workload is one Node.js process, one PostgreSQL 15 instance and, optionally, Redis for API rate limiting. Uploaded files do not live on the VPS: the README documents S3 as the storage backend for avatars and attachments, and nothing else.
| Component | Role | On VPS Starter |
|---|---|---|
kan-web (ghcr.io/kanbn/kan) | Next.js app on port 3000 | Not measured |
kan-db (postgres:15) | boards, cards, users, sessions | Not measured |
kan-migrate | runs Drizzle migrations, then exits | memory returned once it exits |
| Redis (optional) | rate limiting | leave out unless the instance is open to the public |
Move to Standard (4 vCPU, 4 GB RAM, 160 GB NVMe, $12.99) when you add Redis, put a second application on the same VM, or want to build images from source. A Turborepo and Next.js production build needs far more memory than running its output, and 2 GB is the wrong place to try; pull the published images. Add a 2 GB swap file in any case, as a cushion for Postgres maintenance and image pulls.
Disk is rarely the constraint, because the database holds text and the files sit in object storage. What does creep up on an 80 GB disk is Docker's default json-file log driver, which never rotates. Configure rotation before the first container starts (see below).
Only SSH and ports 80 and 443 for the reverse proxy should face the internet. Port 3000 belongs on loopback, and 5432 should not be published at all. Upstream pins postgres:15, a major version supported until 11 November 2027: stay on it while upstream does, and schedule the dump-and-restore to a newer major before that date rather than after.
04/06
How to deploy Kan with us.
- 01
Order, DNS and base packages
Order Starter through the Debian 13 deploy link. Under our no-KYC hosting model an email address is enough to open the account. Create an A record such as
kan.example.compointing at the VPS, because Caddy needs it to resolve before it can obtain a certificate. Then install Docker Engine from Docker's own Debian repository, Caddy from Debian's, and the swap file:apt update && apt install -y ca-certificates curl caddy install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \ https://download.docker.com/linux/debian $(. /etc/os-release && echo $VERSION_CODENAME) stable" \ > /etc/apt/sources.list.d/docker.list apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin cat > /etc/docker/daemon.json <<'EOF' { "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3" } } EOF systemctl restart docker fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile echo '/swapfile none swap sw 0 0' >> /etc/fstab - 02
Compose file and secrets
In
/opt/kan, create.env(thenchmod 600 .env). Generate the database password withopenssl rand -hex 24: hex characters need no URL-encoding insidePOSTGRES_URL, which saves a confusing authentication failure later. GenerateBETTER_AUTH_SECRETwithopenssl rand -base64 32.NEXT_PUBLIC_BASE_URL=https://kan.example.com NEXT_PUBLIC_ALLOW_CREDENTIALS=true NEXT_PUBLIC_DISABLE_SIGN_UP=false BETTER_AUTH_SECRET=replace-with-openssl-rand-base64-32 POSTGRES_PASSWORD=replace-with-openssl-rand-hex-24 POSTGRES_URL=postgresql://kan:replace-with-the-same-password@postgres:5432/kan_db KAN_TAG=latestThe
compose.yamlbelow is the upstream file with three changes: the web port is bound to loopback, PostgreSQL is not published, and the image tag is a variable so you can pin a release.services: migrate: image: ghcr.io/kanbn/kan-migrate:${KAN_TAG:-latest} environment: - POSTGRES_URL=${POSTGRES_URL} depends_on: postgres: condition: service_healthy restart: "no" networks: [kan] web: image: ghcr.io/kanbn/kan:${KAN_TAG:-latest} ports: - "127.0.0.1:3000:3000" env_file: .env depends_on: migrate: condition: service_completed_successfully restart: unless-stopped networks: [kan] postgres: image: postgres:15 environment: - POSTGRES_DB=kan_db - POSTGRES_USER=kan - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} volumes: - kan_pg:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U kan -d kan_db"] interval: 5s timeout: 5s retries: 10 restart: unless-stopped networks: [kan] networks: kan: volumes: kan_pg:/etc/caddy/Caddyfileneeds three lines, after whichsystemctl reload caddyfetches the certificate:kan.example.com { reverse_proxy 127.0.0.1:3000 } - 03
First start and locking the door
Run
docker compose up -dand followdocker compose logs -f migrateuntil the job exits cleanly; the web container only starts after that. Register your own account athttps://kan.example.com, then setNEXT_PUBLIC_DISABLE_SIGN_UP=trueand rundocker compose up -dagain to recreate the web container. People you invite can still join, a behaviour upstream fixed in v0.5.5. Leaving registration open turns your instance and its bucket into free file storage for whoever finds the URL, and you answer for what they upload. - 04
Attachments on object storage
Add a 250 GB bucket from our S3-compatible object storage ($1.99 a month) and give Kan its endpoint and keys. Kan speaks the S3 API directly; there is nothing to format or mount.
S3_ENDPOINT=https://<endpoint shown in your client panel> S3_REGION=us-east-1 S3_ACCESS_KEY_ID=<access key> S3_SECRET_ACCESS_KEY=<secret key> S3_FORCE_PATH_STYLE=true NEXT_PUBLIC_STORAGE_URL=https://<endpoint shown in your client panel> NEXT_PUBLIC_STORAGE_DOMAIN=<endpoint hostname> NEXT_PUBLIC_AVATAR_BUCKET_NAME=kan-avatars NEXT_PUBLIC_ATTACHMENTS_BUCKET_NAME=kan-attachmentsExpect the avatar bucket to need public read access, since browsers load avatars from the storage URL you configure; the attachments bucket stays private.
- 05
Email
Invitations by email, magic-link sign-in, password resets and mention notifications go out over SMTP (
EMAIL_FROM,SMTP_HOST,SMTP_PORT,SMTP_USER,SMTP_PASSWORD). Outbound port 25 is open on every VPS, so a local Postfix is technically possible, but a fresh IP with no sending history lands in spam folders; a relay you have chosen deliberately, on port 465, is the realistic option. The README's example relay is a US company, which is a legitimate choice as long as you make it knowingly: the names and addresses in every invitation pass through it. To run without email, setNEXT_PUBLIC_DISABLE_EMAIL=trueand add members through invite links. - 06
Backups and upgrades
A nightly dump is one line, and our object storage is the natural off-box destination through rclone or restic:
docker compose exec -T postgres pg_dump -U kan -Fc kan_db > /var/backups/kan-$(date +%F).dumpUpgrading is
docker compose pull && docker compose up -d, and the migration job runs before the new web container starts. Since v0.5.5 thelatesttag only moves on tagged releases, whileedgefollows the main branch and has no place on a production board. If you want to choose the moment of each upgrade, setKAN_TAGto a release tag listed on the GHCR package page.
05/06
Cost.
| Item | What you get | Per month |
|---|---|---|
VPS Starter (vps-starter) | 2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB transfer, 1 Gbps | $6.99 |
| Daily backups (optional) | +20 % of the plan price | $1.40 (theoretical: 6.99 × 0.20) |
Object storage 250 GB (storage-250) | S3 buckets, unlimited traffic, 5 Gbps, no request fees | $1.99 |
| All three | $10.38 (theoretical) |
Yearly billing takes roughly 25 % off the VPS, which puts Starter at $62.99 a year. VPS traffic is metered against the included 10 TB rather than unmetered; a project board will not come anywhere near it. Extra IPv4 addresses are $2 a month and priority support $10. The full grid is on the pricing page.
Payment is in crypto only (Monero, Bitcoin, Tether, Ethereum, Litecoin and other coins), with balances in US dollars. Top-ups run from $25 to $5,000, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500; a $50 top-up becomes $52.50 of credit, about seven and a half months of Starter on its own (theoretical). The unused paid part of a top-up is refundable within 14 days. The honest drawback: if your accounts department can only pay by card or bank transfer against an invoice, we are not an option.
06/06
Limits and acceptable use.
Running Kan makes you the operator, and the obligations follow from that. The names, email addresses and comments of your members are personal data you process under the revised Federal Act on Data Protection, in force since 1 September 2023. For teams in the EU, the European Commission's review of 15 January 2024 confirmed that Switzerland still offers an adequate level of protection, so personal data can move from the EU to a server in ALP1 without additional safeguards. Our jurisdiction page covers the wider legal position.
Keeping the database and files here only keeps the data here if the rest of the chain does too. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements with the United Kingdom and Australia only, none with Switzerland. That statement concerns our server; it says nothing about a Google OAuth app, a US SMTP relay or a Cloudflare R2 bucket you plug into Kan, each of which answers to its own law.
A public board is publication. In Switzerland, downloading a work for private use is permitted (software excepted), but making it available online without permission is not, so do not attach other people's books, films or software to boards anyone can open. Swiss copyright law places a stay-down duty on hosting providers only in narrow conditions: the same work was already made available unlawfully through the same service, the provider was notified, and the service creates a particular risk of infringement. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer (who must remove the content or justify it) and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025).
The rest is housekeeping that falls to you: patch Kan, PostgreSQL and Debian, keep .env out of version control, and keep backups that live somewhere other than the VPS they protect.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can Kan run on the 2 GB Starter plan?
Yes, for one team, provided you pull the published images instead of building them and add swap. Standard at $12.99 is the next step when you add Redis or co-host another application.
Do I need object storage for Kan?
For avatars and card attachments, yes: the README documents S3 as their only backend. Boards, cards, comments and checklists work without it. A 250 GB bucket costs $1.99 a month, with unlimited traffic and no request fees.
Can I import my Trello boards?
Yes, through Trello's API. Create an app on Trello and put its key and secret in .env as TRELLO_APP_API_KEY and TRELLO_APP_API_SECRET. The upstream compose file lists the secret as TRELLO_APP_SECRET, so if you use that file rather than ours, which passes the whole .env through, set both names.
Can members sign in through our own identity provider?
Yes. Kan accepts a generic OIDC provider (OIDC_CLIENT_ID, OIDC_CLIENT_SECRET, OIDC_DISCOVERY_URL), so Keycloak or Authentik on another VPS works, and BETTER_AUTH_ALLOWED_DOMAINS restricts logins to your email domains. Set NEXT_PUBLIC_ALLOW_CREDENTIALS=false once SSO works if you want password logins gone.
How do I upgrade Kan without losing data?
Dump the database, read the release notes, then docker compose pull && docker compose up -d. Pre-release software changes its deployment model from time to time, as v0.5.5 did with the separate migration image, and a dump taken two minutes before the upgrade is the cheapest insurance you will buy. More background in object storage.
Is there a comparable app you would host the same way?
Most self-hosted kanban and project tools follow the same pattern of a web container, PostgreSQL and S3 for files, and the sizing logic above carries over.
Sources
Every fact on this page, with its source
Accessed 4 Nov 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 September 2023fedlex RS 235.1
- CopA art. 39d, in force since 1 April 2020 (RO 2020 1003)fedlex LDA · verified 31 Oct 2026
- Private download permitted, making available online without permission notIPI
EU and other countries
- EU adequacy review of 15 January 2024, decision 2000/518/ECEuropean Commission
- CLOUD Act executive agreements (United Kingdom and Australia only)US Department of Justice · verified 31 Oct 2026
Industry, providers and software
- Kan README, self-hosting section and environment variablesgithub.com/kanbn/kan
- Kan docker-compose.yml (postgres:15, 5432:5432 mapping, TRELLO_APP_SECRET)github.com
- Kan releases: v0.6.0 of 29 June 2026 (non-root web container, S3 region default, MCP server), v0.5.6 of 19 March 2026 (security update), v0.5.5 of 12 March 2026 (separate kan-migrate image, latest only on version tags, invited users can sign up when registration is disabled)github.com/kanbn/kan/releases
- Kan container images and tagsgithub.com/kanbn/kan/pkgs/container/kan
- Swico Code of Conduct Hosting, revised version published 13 March 2025 and in force from April 2025swico.ch/coc
Other references
- PostgreSQL versioning policy (PostgreSQL 15 final release 11 November 2027)postgresql.org/support/versioning
- Docker documentation, "Packet filtering and firewalls" (published ports bypass ufw)docs.docker.com
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
