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.
By Simon Vasconcelos Lee
Published on 5 December 202612 minute read
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.mongodump and an archive of the attachments. To update, change the image tag, then pull and recreate the container.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.
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.
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.
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:
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
docker compose config --quiet && echo "compose.yaml OK"
docker compose up -d
docker compose ps
latest, which moves with every release. A version, here v13.20, lets you choose when each update happens. The same image is also published on Docker Hub as wekanteam/wekan and on Quay.127.0.0.1: the official file publishes WeKan on port 80 of every address of the server. Published locally, WeKan is reachable only through the reverse proxy. A comment in the official file advises against adding an address to this line; with Docker 29, it worked as expected on our test VPS.ulimits block, set to the 64,000 that MongoDB recommends, the same restore went through.rs0 on the first start. WeKan needs it for real-time updates, which its Admin Panel reported in oplog mode on our test VPS. MongoDB is reachable only on the internal Docker network, never from outside.ROOT_URL is your public address, with https://: WeKan builds its links from it, and with https:// it also sends a Strict-Transport-Security header.MAIL_URL and MAIL_FROM are read from a .env file next to compose.yaml, created readable by root only, for example MAIL_URL=smtp://user:password@smtp.example.com:587/ and MAIL_FROM=WeKan <wekan@example.com>. Special characters in the password must be URL-encoded. Without them, WeKan runs and sends no email.wekan-db holds the database, and wekan-files the attachments and avatars, which WeKan stores on the filesystem under /data/files.WITH_API=true turns on the REST API, which this guide uses to create the administrator.On our test VPS, WeKan answered a few seconds after its container started. To check that it is ready:
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.
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:
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:
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.
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:
wekan.example.com {
reverse_proxy 127.0.0.1:8123
}
systemctl reload caddy
curl -sI https://wekan.example.com/
HTTP/2 200, with the security headers WeKan sets itself, among them strict-transport-security, x-frame-options and content-security-policy.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:
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.
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:
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.
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:
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.
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:
docker compose pull
docker compose up -d
docker compose ps
mongo:7 tag follows the maintenance releases of MongoDB 7.0, applied by the same docker compose pull. Moving to another major version of MongoDB is a separate operation: back up first, and follow WeKan’s database page.main tag follows each commit of WeKan’s development branch: stay on releases.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.
| Topic | Our teams | You |
|---|---|---|
| The server | System and security updates, server interventions included | The timing that suits you |
| Monitoring | Server monitored 24/7, with intervention without waiting for your call | Your boards, your cards and your settings in WeKan |
| WeKan | Proactive monitoring: errors, slowdowns, database and disk space spotted, fix recommended | Its installation, updates and settings, which you apply, yourself or through your AI assistant |
| Users | The server that carries them, monitored and backed up | Accounts, teams, invitations and board permissions |
| Backups | Every night, encrypted and kept off the machine; restores included | WeKan’s own database dumps and attachment archives, and the restore request, when you need one |
| Migration | Your current server migrated, free of charge | The 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Simafri
Let's talk about your project
Tell us what you need in a few words: we will get back to you quickly.
Thank you! Your request has been sent. We'll get back to you shortly.
Prefer email? Write to us at support@simafri.com.