Log inSign up

Wekan kanban with swimlanes on a private server

Write a small compose.yaml with the ghcr.io/wekan/wekan image and a mongo container, set ROOT_URL to https://kanban.example.net and MAIL_URL to your relay, publish the app on 127.0.0.1:3001, and start it with docker compose up -d. Put Nginx or Caddy in front for HTTPS. The first account you register becomes the administrator, after which you close public registration.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

Which components does Wekan use?

Wekan is a Meteor (Node.js) application backed by MongoDB. Boards, swimlanes, lists, cards, checklists and attachments all live in the database, with uploaded files in a writable data folder. Memory use is moderate: 2 GB covers a team, and 1 GB works for a personal board with a swap file.

Recent MongoDB releases need a CPU with AVX instructions; current server CPUs generally expose them, and a quick check confirms it on yours. You also want Docker with Compose (Docker Engine or the Docker app image) and a name such as kanban.example.net pointing at 198.51.100.24 and 2001:db8:4f2a::24.

grep -m1 -o avx /proc/cpuinfo
docker compose version

What should the compose file contain?

Two services are enough: MongoDB with a persistent volume and Wekan with its URL, database link, mail settings and a loopback port. Create the folder and file:

mkdir -p ~/wekan && cd ~/wekan
nano compose.yaml
services:
  wekandb:
    image: mongo:7
    restart: always
    command: mongod --oplogSize 128 --quiet
    volumes:
      - wekan-db:/data/db
  wekan:
    image: ghcr.io/wekan/wekan:latest
    restart: always
    depends_on:
      - wekandb
    ports:
      - "127.0.0.1:3001:8080"
    environment:
      - WRITABLE_PATH=/data
      - MONGO_URL=mongodb://wekandb:27017/wekan
      - ROOT_URL=https://kanban.example.net
      - MAIL_URL=smtp://relay-user:relay-password@smtp.relay.example.net:587/
      - MAIL_FROM=Wekan Boards <wekan@example.net>
      - WITH_API=true
      - BROWSER_POLICY_ENABLED=true
    volumes:
      - wekan-files:/data
volumes:
  wekan-db:
  wekan-files:

Wekan publishes versioned tags as well as latest; pinning a specific tag from the project's release list makes upgrades a deliberate step. If the relay password contains special characters, URL-encode them in MAIL_URL.

How do you start Wekan and check it?

Bring the stack up and watch the Wekan log until the server reports that it is listening.

docker compose up -d
docker compose ps
docker compose logs -f wekan     # Ctrl+C to leave
curl -sI http://127.0.0.1:3001 | head -n 1
sudo ss -tlnp | grep 3001

The port should be bound to 127.0.0.1, and MongoDB should not appear on the host at all, because it is only on the internal Docker network.

How do you serve Wekan over HTTPS?

Proxy the hostname to port 3001 and pass WebSocket upgrades, which Meteor uses to keep boards in sync. A Caddyfile entry is the shortest route:

kanban.example.net {
    reverse_proxy 127.0.0.1:3001
}

Reload with sudo systemctl reload caddy after installing Caddy as in Caddy HTTPS. With Nginx, save this as /etc/nginx/sites-available/wekan, then link it and request a certificate:

server {
    listen 80;
    listen [::]:80;
    server_name kanban.example.net;
    client_max_body_size 100M;
    location / {
        proxy_pass http://127.0.0.1:3001;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
sudo ln -s /etc/nginx/sites-available/wekan /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d kanban.example.net

How do you lock down the firewall?

Allow SSH and web traffic, nothing else.

sudo ufw allow OpenSSH
sudo ufw allow http
sudo ufw allow https
sudo ufw enable
sudo ufw status

MongoDB in this layout has no published port, which is the main safeguard: an exposed database without authentication is a serious risk, so never add a ports line to wekandb. More on rules in the ufw guide.

How do you create the admin and stop open sign-ups?

Register the first account at https://kanban.example.net; Wekan grants it admin rights. Then open the Admin Panel from the avatar menu, go to Settings, Registration, and switch on "Disable self-registration". New people then join only through invitations, which Wekan emails using MAIL_URL. The same Admin Panel has the Email section with a test button.

For mail, use an authenticated relay on port 587 as in the compose file. Port 25 may be closed for direct delivery, so open a support ticket before planning that route; SMTP relay for apps explains SPF and DKIM.

How do you back up and update Wekan?

Use mongodump inside the database container for a consistent copy, and archive the files volume.

cd ~/wekan
docker compose exec -T wekandb mongodump --archive --gzip --db wekan > wekan-$(date +%F).archive.gz
docker run --rm -v wekan_wekan-files:/d -v "$PWD":/o alpine tar czf /o/wekan-files-$(date +%F).tgz -C /d .

Restore later with mongorestore --archive --gzip --drop through docker compose exec -T wekandb. Updating is a pull and recreate:

docker compose pull
docker compose up -d
docker image prune -f

Upgrade MongoDB one major version at a time and only after a dump, since data files are not readable by versions more than one step apart.

How do you fix common Wekan problems?

  • Page loads but boards never appear: WebSocket upgrades are not proxied, or ROOT_URL does not match the browser address.
  • MongoDB exits right away: run docker compose logs wekandb; a missing AVX flag or a full disk are the usual causes (disk usage).
  • Invitation emails missing: check the mail lines in docker compose logs wekan and the relay credentials.
  • High memory use: give the server a swap file or move up a plan.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-2personal or small team boards1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months
A2-4many boards and attachments2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months

Questions about Wekan boards with Docker

Can Wekan be installed without Docker?

Yes. Wekan also publishes a Snap package (sudo snap install wekan) that bundles MongoDB, configured with snap set wekan. Docker keeps the parts more visible and is easier to back up.

Does Wekan have a REST API?

Yes. With WITH_API=true Wekan exposes an API for boards, lists and cards, authenticated with a login token.

Can I import boards from Trello?

Yes. Wekan imports Trello JSON exports and its own CSV and JSON exports from the board creation menu.

What are swimlanes?

Horizontal lanes that split a board, for example by team or priority, so the same lists repeat in each lane.

How is Wekan different from Planka?

Planka uses PostgreSQL and a simpler layout; Wekan uses MongoDB and offers swimlanes, rules and many board options.