Skip to content
🧮 Is Lifetime with ZapX Pass worth it? Work it out for your own servers in 30 seconds. Open the Lifetime calculator →

Set Up WeKan on a Linux Server – Self-Host a Kanban Board as a Trello Alternative

Install WeKan as a One-Click App or with Docker Compose, securely disable registration, and plan tasks together on Kanban boards.

2 December 202611 min read9 Views0 helpful

Introduction

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.

When WeKan Makes Sense on a VPS

  • 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 Easy Way: WeKan as a One-Click App

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.

Requirements

  • 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.

Install WeKan

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search for WeKan in the App catalog and click Install app.
  3. Leave Use a custom subdomain or zap.cloud enabled and choose an address. WeKan will be available over HTTPS with a domain.
  4. 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.
  5. 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.
FieldRequiredDefault valueDescription
WEKAN_ADMIN_USERNAMEnoadminUsername for your administrator account; applies only during the first installation
WEKAN_ADMIN_EMAILnoadmin@example.comEmail address for your administrator account; applies only during the first installation
TZnoEurope/BerlinContainer time zone
SERVICE_PASSWORD_WEKANADMIN–generated automaticallyPassword 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.

Info: Registration is disabled

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).

First Login: Find Your Login Details

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:

  1. Click the gear icon on the app card and go to App environment.
  2. 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.
  3. Open WeKan using the app card’s Access link.
  4. Under Username or email, enter the username admin (or the value you set for WEKAN_ADMIN_USERNAME). You can also use the email address from WEKAN_ADMIN_EMAIL, which defaults to admin@example.com. Enter the password under Password and click Sign In.
  5. 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.

Warning: After changing your password

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.

Add More Users

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.

Set Up Email Delivery

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.

Updates and Backups

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.

Tip: Back up before major updates

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.

Manual Installation

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.

Requirements

  • 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.
ResourceMinimumRecommended
CPU1 vCore2 vCores
RAM1 GB2 GB
Storage2 GB5 GB plus space for attachments

Configure the Firewall

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:

Code
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.

Install with Docker Compose

Create a directory and add a docker-compose.yml file inside it:

Code
mkdir -p /opt/wekan && cd /opt/wekan
nano docker-compose.yml
yaml
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 rs0 and rs.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. Replace wekan.example.com with 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 neither wget nor curl, 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:

Code
docker compose up -d
docker compose ps

After about a minute, both containers should show the healthy status.

Create an Administrator Account and Disable Registration

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:

Code
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:

Code
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.

Warning: Follow the correct order

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.

Access WeKan over HTTPS Through a Reverse Proxy

WeKan uses WebSockets for live updates, so the reverse proxy must forward these connections. Here’s an example for nginx:

Code
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.

Back Up Your Data

WeKan stores boards and accounts in MongoDB and attachments in the wekan-files volume. Back up both regularly:

Code
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.

Update WeKan

  1. Back up the database and attachments as described above.
  2. Enter the new version under image: in the docker-compose.yml file, for example ghcr.io/wekan/wekan:v13.38. Find current versions and changes on the WeKan releases page.
  3. Download the new image and restart WeKan:
Code
docker compose pull
docker compose up -d
Tip: Pin a version instead of using latest

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.

Working with Boards

Boards, Lists, Swimlanes, and Cards

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).

Migrate from Trello

WeKan can import boards from Trello:

  1. In Trello, export the board by selecting Menu > More > Print, Export, and Share > Export as JSON.
  2. In WeKan, click your name in the upper-right corner and select Import.
  3. 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.

REST API and Automation

Use the REST API to control WeKan from your own scripts. First, get a token:

Code
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.

Limitations

  • 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.

Conclusion

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! 🙂

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the fastest option: ZapX sets up the database, domain, HTTPS, and your administrator account, while keeping registration disabled. You can install updates in the app settings under App Update. Manual installation with Docker Compose is a good choice if you want to integrate WeKan into an existing Docker environment or configure it yourself.
The username is admin, unless you set a different value for WEKAN_ADMIN_USERNAME during installation. You can also use the email address in WEKAN_ADMIN_EMAIL, which defaults to admin@example.com. Find the password under SERVICE_PASSWORD_WEKANADMIN in the app settings under App Environment. The app card doesn’t show the username.
Not while self-registration is disabled. It’s disabled by default in the One-Click App, and the registration page then requires an invitation code. If you check Self-Registration under Login in the Admin Panel, anyone who visits your domain can register and create their own boards. It’s safer to create new accounts under People in the Admin Panel by clicking New.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.