Self-host WeKan on a managed VPS: your kanban boards

To self-host WeKan on a managed VPS is to keep your boards, cards and attachments on a server of your own, which our teams keep up to date and monitor day and night. WeKan is a free, open source kanban application under the MIT license, built with Meteor. This guide follows its official Docker Compose file for MongoDB 7 at version 13.20, and we ran every command on a Simafri VPS before writing it: installation, the administrator account, HTTPS, backups, a restore into an empty database and an update.

Simon Vasconcelos Lee By Published on 5 December 202612 minute read

All guides Documentation and collaboration

In short

  1. The MIT license lets you run WeKan for your team, your company or your clients with nothing to pay, and to modify it freely.
  2. Install it with Docker Compose: the image ghcr.io/wekan/wekan pinned to a version, and MongoDB 7 as a single-node replica set, with port 8123 published on 127.0.0.1 behind an HTTPS reverse proxy.
  3. Raise the open files limit of MongoDB to 64000: with the default of 1024, MongoDB crashed on our test VPS while restoring a backup.
  4. Create the administrator from the terminal before the site goes public, then close self-registration: otherwise the first visitor to sign up becomes the administrator.
  5. Back up with mongodump and an archive of the attachments. To update, change the image tag, then pull and recreate the container.

What WeKan does

WeKan is a collaborative kanban board: boards made of swimlanes and lists, with cards that move from one list to the next as the work progresses. It has been developed in the open for more than ten years, and its maintainer publishes new versions several times a week.

Its interface is translated into more than 200 languages, chosen by each user from the sign-in page or their settings.

What the MIT license allows

WeKan is published under the MIT license. You can use it free of charge, for your team, your company or your clients, copy it, modify it and distribute it, provided the copyright notice and the license text come with it. The software is provided without warranty. Its maintainer also offers paid support and a hosted service, for those who want them; nothing in this guide needs them.

The resources to plan for

Here is what we measured on our test VPS, with 2 vCPU and 4 GB of RAM, after the installation, a board, a card and an attachment:

WeKan’s database page warns that MongoDB refuses to start on Linux kernels 6.19 to 7.0.13. Check yours with uname -r: on our test VPS, with kernel 7.0.14, MongoDB 7 started normally. Server size then depends on the number of people working at the same time and on the other applications you run beside WeKan. On a managed VPS, tell us about your usage and we will recommend the right size.

Installing with Docker Compose

WeKan ships several Compose files. Its default docker-compose.yml now uses FerretDB with SQLite; docker-compose-mongodb-v7.yml keeps the classic setup on MongoDB 7, which gives WeKan real-time updates through the MongoDB oplog and lets you back up with MongoDB’s own tools. This guide follows the MongoDB 7 file. On a server with Docker Engine and its Compose plugin, installed from Docker’s repository for Ubuntu, work as root: create the folder /opt/wekan and put this compose.yaml in it, which is the official file without its comments and with the changes listed below:

compose.yaml
services:
  wekandb:
    image: mongo:7
    container_name: wekan-db
    restart: always
    ulimits:
      nofile:
        soft: 64000
        hard: 64000
    command: >
      sh -c '
        mongod --storageEngine wiredTiger --wiredTigerCacheSizeGB 1 --timeZoneInfo /usr/share/zoneinfo --setParameter logicalSessionRefreshMillis=900000 --setParameter localLogicalSessionTimeoutMinutes=45 --oplogSize 2048 --replSet rs0 --bind_ip_all --quiet &
        until mongosh --host 127.0.0.1 --quiet --eval "
          try {
            const status = rs.status();
            quit(status.ok === 1 ? 0 : 1);
          } catch (e) {
            if (
              e.codeName === \"NotYetInitialized\" ||
              e.message.includes(\"no replset config has been received\") ||
              e.message.includes(\"not yet initialized\")
            ) {
              rs.initiate({
                _id: \"rs0\",
                members: [{ _id: 0, host: \"wekandb:27017\" }]
              });
              quit(1);
            }
            quit(1);
          }
        " >/dev/null 2>&1; do
          sleep 2
        done
        wait
      '
    networks:
      - wekan-tier
    expose:
      - 27017
    healthcheck:
      test: ["CMD", "mongosh", "--host", "127.0.0.1", "--port", "27017", "--quiet", "--eval", "try { quit(rs.status().ok === 1 && db.hello().isWritablePrimary ? 0 : 1) } catch (e) { quit(1) }"]
      interval: 10s
      timeout: 10s
      retries: 30
      start_period: 60s
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - wekan-db:/data/db

  wekan:
    image: ghcr.io/wekan/wekan:v13.20
    container_name: wekan-app
    restart: always
    networks:
      - wekan-tier
    ports:
      - 127.0.0.1:8123:8080
    environment:
      - METEOR_REACTIVITY_ORDER=changeStreams,oplog,polling
      - DDP_TRANSPORT=sockjs
      - WRITABLE_PATH=/data
      - MONGO_URL=mongodb://wekandb:27017/wekan?replicaSet=rs0
      - MONGO_OPLOG_URL=mongodb://wekandb:27017/local?replicaSet=rs0
      - ROOT_URL=https://wekan.example.com
      - MAIL_URL=${MAIL_URL:-}
      - MAIL_FROM=${MAIL_FROM:-}
      - WITH_API=true
      - CARDS_LOADING=all
      - CARD_OPENED_WEBHOOK_ENABLED=false
      - BIGEVENTS_PATTERN=NONE
      - BROWSER_POLICY_ENABLED=true
    depends_on:
      wekandb:
        condition: service_healthy
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - wekan-files:/data:rw

volumes:
  wekan-files:
  wekan-db:

networks:
  wekan-tier:
    driver: bridge
Terminal, in /opt/wekan
docker compose config --quiet && echo "compose.yaml OK"
docker compose up -d
docker compose ps

On our test VPS, WeKan answered a few seconds after its container started. To check that it is ready:

Terminal, in /opt/wekan
until curl -sf http://127.0.0.1:8123/ >/dev/null; do sleep 5; done
curl -s http://127.0.0.1:8123/ | grep -o '<title>[^<]*</title>'

The second command returns <title>Wekan</title>, the title of the application.

The administrator, before anyone else

In WeKan, the first account to sign up becomes the administrator, and self-registration is open by default. On a public address, a stranger could take that place before you. Create your account from the server first, while WeKan still answers only on 127.0.0.1, then close self-registration.

This creates the account admin with a random password, kept in a file readable by root only, through the REST API. Put your own email address in place of admin@example.com; the second command shows the accounts in the database:

Terminal, in /opt/wekan
umask 077
openssl rand -hex 16 > admin-password
umask 022
curl -s -X POST http://127.0.0.1:8123/users/register -H 'Content-Type: application/json' -d "{\"username\":\"admin\",\"email\":\"admin@example.com\",\"password\":\"$(cat admin-password)\"}" | grep -o '"id":"[^"]*"'
docker compose exec -T wekandb mongosh --quiet wekan --eval 'db.users.find({}, {username: 1, isAdmin: 1}).toArray()'

The answer shows the account with isAdmin: true. Then close self-registration, the setting WeKan reads before creating any account, and check that a new sign-up is refused:

Terminal, in /opt/wekan
docker compose exec -T wekandb mongosh --quiet wekan --eval 'db.settings.updateOne({}, {$set: {disableRegistration: true}})'
curl -s -o /dev/null -w '%{http_code}\n' -X POST http://127.0.0.1:8123/users/register -H 'Content-Type: application/json' -d '{"username":"test","password":"0123456789abcdef"}'

MongoDB answers modifiedCount: 1, and the attempt returns 403. On our test VPS, the sign-in page no longer showed a Register link. The accounts of your team are then created by the administrator, for example through the REST API route POST /api/users, which requires an administrator’s token, and managed in the Admin Panel under People.

HTTPS: the reverse proxy

The container serves WeKan over HTTP, on port 8123 of the server. HTTPS is handled by a reverse proxy in front of it, which must also carry WebSocket connections, the channel of WeKan’s real-time updates. We tested Caddy, installed from its official Debian and Ubuntu repository: it obtains the Let’s Encrypt certificate itself, renews it, and forwards WebSockets and the usual headers by default. Add this block to the Caddyfile:

/etc/caddy/Caddyfile
wekan.example.com {
	reverse_proxy 127.0.0.1:8123
}
Terminal
systemctl reload caddy
curl -sI https://wekan.example.com/

The first sign-in

Open your address: WeKan shows its sign-in page. Sign in with admin and the password this command displays, then keep it in your password manager:

Terminal
cat /opt/wekan/admin-password

On our test VPS, we then created a board with a list and a card, and attached a text file to the card. In a real browser, through Caddy, the board opened with its card, and the Admin Panel showed WeKan 13.20.0, MongoDB 7.0.48 and real-time updates in oplog mode, under Settings, Version.

Backups

Everything lives in two places: the MongoDB database wekan, and the wekan-files volume with the attachments and avatars. Your compose.yaml and .env complete them. WeKan’s backup page advises stopping WeKan during the copy, so that the database and the files match. The MongoDB image includes mongodump, and the WeKan image includes tar:

Terminal, in /opt/wekan
docker compose stop wekan
umask 077
docker compose exec -T wekandb mongodump --db=wekan --archive --gzip > wekan-db-$(date +%F).archive.gz
docker compose run --rm --no-deps -T --entrypoint tar wekan -C /data -czf - files > wekan-files-$(date +%F).tar.gz
umask 022
docker compose start wekan
ls -l wekan-db-*.archive.gz wekan-files-*.tar.gz

The two archives are readable by root only. WeKan is unavailable for a few seconds: on our test VPS, the whole sequence took about five seconds. Schedule it at a quiet hour and send the archives off the server. Stored on the disk, they are also included in the server’s nightly backups.

WeKan also has its own backups, in the Admin Panel under Attachments, Backup, which can run on a schedule while WeKan keeps running. The copy above is the one we tested for a full restore.

Restoring

On the same installation, or on a new one with the same compose.yaml where docker compose up -d has run, stop WeKan, load the database and the files, then start it again. The three steps are chained, so the restore stops at the first error:

Terminal, in /opt/wekan
BACKUP_DATE=2026-11-20
(
  set -e
  for f in wekan-db-$BACKUP_DATE.archive.gz wekan-files-$BACKUP_DATE.tar.gz; do
    test -s "$f" || { echo "Missing or empty: $f"; exit 1; }
  done
  docker compose stop wekan
  docker compose exec -T wekandb mongorestore --drop --stopOnError --archive --gzip < wekan-db-$BACKUP_DATE.archive.gz
  docker compose run --rm --no-deps -T --entrypoint tar wekan -C /data -xzf - < wekan-files-$BACKUP_DATE.tar.gz
  docker compose start wekan
)

Set BACKUP_DATE, on the first line, to the date in the names of the backup you restore, as listed by ls. The commands run in parentheses with set -e, which stops them at the first error. They first check that each file exists and is not empty, before anything is stopped, removed or overwritten: a wrong date stops there, with your data untouched, and a failed step stops every step after it, so the application is never started again on a partial restore.

We tested the whole cycle on our VPS: the database actually dropped and the attachments removed, then the restore. mongorestore reported 68 documents restored and none failed, the board and its card came back, the attachment downloaded with the same SHA-256 checksum as the original, and the administrator signed in again at once.

Updates

WeKan publishes new versions several times a week, from 13.14 to 13.20 between 16 and 19 November 2026 alone, and the image follows on the GitHub registry with the same numbers. This guide pins 13.20, the most recent when we tested it: check the releases page for a newer one before you install. Take a backup, change the image tag of the wekan service in compose.yaml, then pull the new image and recreate the container:

Terminal, in /opt/wekan
docker compose pull
docker compose up -d
docker compose ps

Who does what on a managed VPS

Self-hosting means running the server on top of the application. On a managed VPS, our teams take charge of the server and proactively monitor your instance; WeKan remains your software, with your boards and your settings.

TopicOur teamsYou
The serverSystem and security updates, server interventions includedThe timing that suits you
MonitoringServer monitored 24/7, with intervention without waiting for your callYour boards, your cards and your settings in WeKan
WeKanProactive monitoring: errors, slowdowns, database and disk space spotted, fix recommendedIts installation, updates and settings, which you apply, yourself or through your AI assistant
UsersThe server that carries them, monitored and backed upAccounts, teams, invitations and board permissions
BackupsEvery night, encrypted and kept off the machine; restores includedWeKan’s own database dumps and attachment archives, and the restore request, when you need one
MigrationYour current server migrated, free of chargeThe timing of the switch

If you would rather have our teams work inside the application itself, that service is billed by the hour or at a fixed rate, with an estimate shared before the work starts.

WeKan, on a server run for you

With a Simafri Managed VPS, our teams keep your WeKan instance’s server up to date, monitor it day and night and step in without waiting for your call; they also proactively monitor your instance and recommend useful fixes, which you apply, yourself or through your AI assistant. Backups are encrypted every night and kept off the machine, restores are included, and migrating your current server is free.

Explore Managed VPS

Frequently asked questions

Is WeKan free?

Yes. WeKan is under the MIT license: you can run it for your team, your company or your clients with nothing to pay, and modify it. Its maintainer offers paid support and a hosted service for those who want them. What remains is the cost of the server that runs it.

How do I install WeKan with Docker Compose?

Start from WeKan’s docker-compose-mongodb-v7.yml: the ghcr.io/wekan/wekan image pinned to a version, and mongo:7 as a single-node replica set. Raise MongoDB’s open files limit to 64000, set ROOT_URL to your https address, publish port 8080 of the container on 127.0.0.1, run docker compose up -d, and put an HTTPS reverse proxy in front.

Who becomes the WeKan administrator?

The first account to sign up. Create yours from the server through the REST API, before the site is public, then close self-registration by setting disableRegistration to true in the settings: a new sign-up then returns 403.

Why does MongoDB crash with “Too many open files”?

WeKan keeps its data in more than a hundred collections, and on our test VPS, with Docker 29, containers started with a soft limit of 1,024 open files. MongoDB stopped while a restore rebuilt the indexes. An ulimits block with nofile set to 64000 on the MongoDB service solved it.

How much memory does WeKan need?

On our test VPS, the WeKan container used between 250 and 290 MB and MongoDB between 150 and 270 MB, with a WiredTiger cache limited to 1 GB. The two images take about 1.1 GB of disk. A VPS with 4 GB of RAM ran it comfortably.

How do I back up WeKan in Docker?

Stop the wekan service, dump the wekan database with mongodump from the MongoDB container, archive /data/files from the WeKan image, then start it again. Restore with mongorestore --drop --stopOnError and tar, the application stopped.

How do I update WeKan in Docker?

Take a backup, change the image tag in compose.yaml, then run docker compose pull and docker compose up -d. WeKan starts on the existing database; we tested the update from 13.19 to 13.20.

Does a managed VPS cover WeKan?

A managed VPS covers the server: system, security, monitoring and backups. Our teams also proactively monitor your instance and recommend useful fixes, which you apply. Work inside the application is billed by the hour or at a fixed rate.

Contact us