WeKan is an open-source Kanban board (MIT License) and a self-hosted alternative to Trello. Organize tasks on boards with lists, cards, and swimlanes, assign labels, due dates, checklists, and members, and work on the same board with others at the same time. WeKan runs in your browser, stores its data in a MongoDB database, and includes a REST API for automation.
In this guide, we’ll show you two ways to install it: the easy way using your VPS’s One-Click Apps and a manual installation with Docker Compose. Then you’ll learn how to create boards, migrate from Trello, and access WeKan through its API.
- Plan projects as a team: Multiple people can work on a board at the same time, and changes appear for everyone without reloading.
- Replace Trello: You can import existing Trello boards, and the interface is similar.
- Keep your data under your control: Tasks, comments, and attachments are stored on your server, not with a cloud provider.
- No user limits: The number of boards and members depends only on your server’s resources.
- Automate tasks: Use the REST API to create cards from scripts, forms, or monitoring tools.
WeKan may not be the best fit if you mainly need documents or a wiki, or if you rely on native smartphone apps. WeKan only runs in a mobile browser on smartphones.
The fastest way to get started with WeKan is through your VPS’s One-Click Apps. ZapX configures the database, domain, HTTPS, and your administrator account for you, so you don’t need to use the console.
- A VPS running Debian or Ubuntu with One-Click Apps set up. For instructions, see Set Up One-Click Apps.
- At least 1 GB of free RAM and 1 vCore; 2 GB and 2 vCores are recommended. WeKan and its database need only a few GB of storage to start with, but attachments require additional space.
- Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
- Search for WeKan in the App catalog and click Install app.
- Leave Use a custom subdomain or zap.cloud enabled and choose an address. WeKan will be available over HTTPS with a domain.
- Under App configuration, you can set the username and email address for your administrator account. You don’t have to fill these in; the default values work. ZapX generates the password automatically.
- Click Queue installation. On the first startup, WeKan sets up the database and creates your administrator account. This usually takes one to two minutes. WeKan will then appear in your list of installed apps.
| Field | Required | Default value | Description |
|---|---|---|---|
WEKAN_ADMIN_USERNAME | no | admin | Username for your administrator account; applies only during the first installation |
WEKAN_ADMIN_EMAIL | no | admin@example.com | Email address for your administrator account; applies only during the first installation |
TZ | no | Europe/Berlin | Container time zone |
SERVICE_PASSWORD_WEKANADMIN | – | generated automatically | Password for your administrator account |
Use a real address for WEKAN_ADMIN_EMAIL or leave admin@example.com as the default. The dialog rejects addresses ending in .local.
During installation, ZapX creates your administrator account and disables self-registration before WeKan is accessible from the internet. This prevents others from creating accounts. You can invite additional users yourself (see below).
The app card’s Login section only says that the login details were generated during installation. It doesn’t show the username. Here’s how to sign in:
- Click the gear icon on the app card and go to App environment.
- Under Automatically generated values, find the password for your administrator account next to
SERVICE_PASSWORD_WEKANADMIN. Click the eye icon to show it, or use the button beside it to copy it. - Open WeKan using the app card’s Access link.
- Under Username or email, enter the username
admin(or the value you set forWEKAN_ADMIN_USERNAME). You can also use the email address fromWEKAN_ADMIN_EMAIL, which defaults toadmin@example.com. Enter the password under Password and click Sign In. - Click your name in the upper-right corner to open the menu. There you’ll find options including Edit Profile, Change Password, and Admin Panel.
The WEKAN_ADMIN_USERNAME and WEKAN_ADMIN_EMAIL fields remain available under App environment after installation, but they only apply during the first installation. Changing them later won’t rename your account. To do that, go to Edit Profile in WeKan.
If you change your password in WeKan, App environment will continue to show the original password. Be sure to save your new password in your password manager.
You can access all administrative functions through Admin Panel, under your name in the upper-right corner. Click People in the top bar. You’ll then see the different sections on the left:
- People: View all accounts here. Click New to create a user, or use Edit to assign administrator rights or deactivate an account.
- Login: Use the checkbox next to Self-Registration to control whether visitors can create their own accounts. It’s unchecked after installation.
- Invite People (also under Login): If email delivery is set up, you can invite people by email to selected boards, even when self-registration is disabled. They’ll receive an invitation code that they can use to register.
If you enable registration, anyone who visits your domain can create an account and their own boards. It’s safer to leave registration disabled and create accounts directly under People. The registration page will still be accessible, but WeKan will reject new accounts without a valid invitation code.
WeKan doesn’t send emails by default. To enable notifications, invitations, and password resets, open Email in the left-hand menu under People in the Admin Panel. Check Use the email settings below, select your provider or SMTP under Email service, and enter the server, port, username, password, and sender address. Click Save, then test delivery with Send a test email to yourself.
To install a new version of WeKan, go to App update in the app settings. Click Check for updates, then Apply update. WeKan will restart, but boards, accounts, and attachments will remain in the volumes.
New versions of WeKan are released very frequently. Export important boards before an update, for example by selecting Export all boards in the board overview, or create a backup of your VPS.
If you want to manage WeKan yourself or integrate it into an existing Docker environment, install it with Docker Compose. The following steps use WeKan 13.37 with MongoDB 7.
- A VPS running Debian or Ubuntu, with root access over SSH. For instructions on connecting, see Set Up SSH Access.
- Docker and the Compose plugin. For installation instructions, see Install Docker.
- A domain or subdomain whose A record points to your server’s IP address if you want to run WeKan over HTTPS.
| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 1 vCore | 2 vCores |
| RAM | 1 GB | 2 GB |
| Storage | 2 GB | 5 GB plus space for attachments |
In this guide, WeKan listens only on 127.0.0.1, so it can’t be accessed directly from the internet. Open only SSH and the ports used by the reverse proxy:
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
For more information about the firewall, see Set Up a Firewall on Linux.
Create a directory and add a docker-compose.yml file inside it:
mkdir -p /opt/wekan && cd /opt/wekan
nano docker-compose.yml
services:
wekandb:
image: mongo:7
restart: unless-stopped
command: >
sh -c '
mongod --replSet rs0 --bind_ip_all --quiet &
until mongosh --quiet --eval "
try { quit(rs.status().ok === 1 ? 0 : 1) }
catch (e) { rs.initiate({ _id: \"rs0\", members: [{ _id: 0, host: \"wekandb:27017\" }] }); quit(1) }
" >/dev/null 2>&1; do sleep 2; done
wait
'
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "try { quit(db.hello().isWritablePrimary ? 0 : 1) } catch (e) { quit(1) }"]
interval: 10s
timeout: 10s
retries: 30
start_period: 60s
volumes:
- wekan-db:/data/db
wekan:
image: ghcr.io/wekan/wekan:v13.37
restart: unless-stopped
depends_on:
wekandb:
condition: service_healthy
environment:
- MONGO_URL=mongodb://wekandb:27017/wekan?replicaSet=rs0
- ROOT_URL=https://wekan.example.com
- WRITABLE_PATH=/data
- TZ=Europe/Berlin
ports:
- 127.0.0.1:8080:8080
volumes:
- wekan-files:/data
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:8080/', r => process.exit(r.statusCode < 500 ? 0 : 1)).on('error', () => process.exit(1))"]
interval: 15s
timeout: 5s
retries: 5
start_period: 60s
volumes:
wekan-db:
wekan-files:
The most important lines:
--replSet rs0andrs.initiate: WeKan needs MongoDB to run as a replica set so changes appear immediately for all users. The startup command automatically configures the replica set on the first startup.ROOT_URL: The address where WeKan will be available. Replacewekan.example.comwith your domain. If this value is incorrect, links and sign-in won’t work properly.127.0.0.1:8080:8080: WeKan is accessible only from the server itself. External access goes through the reverse proxy.- Health check with
node: The WeKan image contains neitherwgetnorcurl, so Node.js checks whether WeKan is responding. wekan-files: WeKan stores attachments and avatars here.
Start WeKan and check that both containers are running:
docker compose up -d
docker compose ps
After about a minute, both containers should show the healthy status.
The first account created in WeKan gets administrator privileges, and registration is enabled for everyone by default. Create your account directly on the server before WeKan is accessible from the internet:
read -s -p "Passwort: " WEKAN_PW; echo
curl -s -X POST http://127.0.0.1:8080/users/register \
-H 'Content-Type: application/json' \
-d "{\"username\":\"admin\",\"email\":\"you@example.com\",\"password\":\"$WEKAN_PW\"}"
unset WEKAN_PW
The response contains an id. Then disable self-registration:
docker compose exec wekandb mongosh --quiet wekan --eval 'db.settings.updateMany({}, { $set: { disableRegistration: true } })'
From now on, WeKan will reject new registrations. You can create additional users later under People in the Admin Panel. You can re-enable self-registration at any time under Login.
Set up the reverse proxy only after your administrator account exists and registration is disabled. Otherwise, someone else could create the first account and become an administrator of your instance.
WeKan uses WebSockets for live updates, so the reverse proxy must forward these connections. Here’s an example for nginx:
server {
listen 80;
server_name wekan.example.com;
client_max_body_size 50m;
location / {
proxy_pass http://127.0.0.1:8080;
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-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 3600s;
}
}
client_max_body_size sets the maximum attachment size. For instructions on setting up nginx, see Set Up an nginx Reverse Proxy. Get a certificate by following Set Up an SSL Certificate with Certbot. Then open https://wekan.example.com and sign in with your administrator account.
WeKan stores boards and accounts in MongoDB and attachments in the wekan-files volume. Back up both regularly:
cd /opt/wekan
docker compose exec -T wekandb mongodump --archive --gzip --db wekan > wekan-db-$(date +%F).archive.gz
docker run --rm -v wekan_wekan-files:/data -v "$PWD":/backup alpine tar czf /backup/wekan-files-$(date +%F).tar.gz -C /data .
The volume name consists of the directory name and the name in the Compose file. Use docker volume ls to see the exact name. To restore the database, use mongorestore --archive --gzip --drop. Also copy the backups to another computer.
- Back up the database and attachments as described above.
- Enter the new version under
image:in thedocker-compose.ymlfile, for exampleghcr.io/wekan/wekan:v13.38. Find current versions and changes on the WeKan releases page. - Download the new image and restart WeKan:
docker compose pull
docker compose up -d
Pinning a version lets you decide when to update. WeKan often releases several versions per week, many of which include security fixes. Check the releases page regularly.
After signing in, click Add Board to create a board. Each board consists of lists (for example, “Open,” “In Progress,” and “Done”) and cards that you can drag and drop between lists. Swimlanes further divide a board into rows, for example by team or project.
On a card, you can:
- Assign members and owners
- Set labels, start dates, and due dates
- Add checklists, comments, and attachments
- Create custom fields, for example for priority or customer
Add other users as members through the board menu. Each board can be private (members only) or public (readable by anyone with the link).
WeKan can import boards from Trello:
- In Trello, export the board by selecting Menu > More > Print, Export, and Share > Export as JSON.
- In WeKan, click your name in the upper-right corner and select Import.
- Select Trello as the source, upload the JSON file or paste its contents, and match Trello members to your WeKan users.
You can import multiple boards and their attachments as a ZIP file. Alternatively, WeKan can retrieve boards directly from Trello using your Trello API key. The same process lets you import boards from Jira, another WeKan instance, or CSV and Excel files.
Use the REST API to control WeKan from your own scripts. First, get a token:
curl -s -X POST https://wekan.example.com/users/login \
-H 'Content-Type: application/json' \
-d '{"username":"admin","password":"DEIN_PASSWORT"}'
The response contains id and token. Use the token as Authorization: Bearer TOKEN to create boards, for example with POST /api/boards, or create cards in a list using the card endpoints. See the WeKan REST API documentation for the complete reference. For automation, it’s best to create a separate user account without administrator privileges.
- No native apps: WeKan runs in your smartphone’s browser. You can add the page to your home screen.
- Email requires SMTP: Without a configured mail server, there are no notifications or password reset emails.
- MongoDB must run as a replica set: You can’t simply reuse an existing MongoDB instance that isn’t configured as a replica set.
- Frequent updates: If you host WeKan yourself, install security updates promptly.
With WeKan, you now run a full-featured Kanban board under your own control, with no user limits and with import from Trello. Next, Set Up Mattermost on a Linux Server shows you how to give your team a self-hosted chat as well.
If you have any other questions or need help, our support team is available every day! 🙂
