On this page
- Which components does Wekan use?
- What should the compose file contain?
- How do you start Wekan and check it?
- How do you serve Wekan over HTTPS?
- How do you lock down the firewall?
- How do you create the admin and stop open sign-ups?
- How do you back up and update Wekan?
- How do you fix common Wekan problems?
- Questions
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 versionWhat 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.yamlservices:
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 3001The 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.netHow 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 statusMongoDB 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 -fUpgrade 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_URLdoes 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 wekanand 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.
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.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Activepieces automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Snipe-IT asset tracking
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Penpot design tool with Docker
- Planka kanban boards
- Leantime project management
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- DocuSeal document signing
- Metabase dashboards
- Appwrite backend server
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- Redmine project tracker
- The Lounge IRC client
- CyberChef data toolbox
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM