Skip to content
Serverküche
Search

Loading search …

Applications Difficulty: Intermediate

Vikunja: self-host your tasks and projects

Set up Vikunja 2.8 behind Traefik: four project views, labels and reminders – plus the two stumbling blocks that really do hit you on first start.

· 11 min read ·Duration: approx. 40 minutes
Table of contents

Todoist, Asana and Trello have one thing in common: your task list lives with somebody else. Vikunja does the same job on your own server and is surprisingly complete at it.

Two things still go wrong on first start: the container cannot use its volume, and your own account cannot register. Both are below, along with how to recognise them.

What are we building?

Vikunja 2.8.0 behind your existing Traefik, with PostgreSQL 18 as the database and a real TLS certificate. At the end you have a task manager that shows every project as a list, a Kanban board, a table and a Gantt chart at the same time, with nothing to configure.

Plus labels, priorities, due dates, reminders, sub-projects and shared projects for teams. Self-hosting is free and has no user limit; what the Pro licence adds is covered in step 9.

Requirements

  • A server with Docker and a running Traefik reverse proxy on the proxy network.
  • A subdomain pointing at the server, vikunja.YOUR_DOMAIN in the example.
  • Very little room: both containers together use about 90 MiB of RAM right after the start and about 160 MiB after the first projects and tasks (Vikunja 90 MiB, PostgreSQL 75 MiB).
🍳 Recommendation Ad

VPS 1000 G12.5

4 vCores · 8 GB RAM · 128 GB SSD

from €14.50/month

Comfortably enough for Vikunja alongside other services.

Go to netcup →

💶 1 month free:

Single use, valid for VPS 1000 G12.5. Redeem in the cart →

💶 €5.95 voucher for new netcup customers: always valid · not for domains or VPS Lite

All netcup vouchers →

Step by step

Step 1: Directory and secrets

Vikunja needs two secrets: the database password and a key used to sign login tokens. Generate both rather than inventing them:

Terminal
mkdir -p /opt/vikunja && cd /opt/vikunja
Terminal
{
  echo "DOMAIN=vikunja.YOUR_DOMAIN"
  echo "DB_PASSWORD=$(openssl rand -base64 24 | tr -d '/+=' | head -c 24)"
  echo "JWT_SECRET=$(openssl rand -hex 32)"
} > .env
chmod 600 .env

The JWT_SECRET is the more important of the two. Anyone who knows it can issue themselves valid login tokens, and changing it later logs out every signed-in device.

Step 2: The compose file

YAML
services:
  vikunja:
    image: vikunja/vikunja:2.8.0
    environment:
      VIKUNJA_SERVICE_PUBLICURL: "https://${DOMAIN}/"
      VIKUNJA_SERVICE_SECRET: "${JWT_SECRET}"
      VIKUNJA_SERVICE_ENABLEREGISTRATION: "false"
      VIKUNJA_DATABASE_TYPE: postgres
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_PASSWORD: "${DB_PASSWORD}"
      VIKUNJA_DATABASE_DATABASE: vikunja
    volumes:
      - files:/app/vikunja/files
    networks: [proxy, intern]
    depends_on:
      db:
        condition: service_healthy
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=proxy"
      - "traefik.http.routers.vikunja.rule=Host(`${DOMAIN}`)"
      - "traefik.http.routers.vikunja.entrypoints=websecure"
      - "traefik.http.routers.vikunja.tls.certresolver=le"
      - "traefik.http.services.vikunja.loadbalancer.server.port=3456"
    restart: unless-stopped

  db:
    image: postgres:18.7-alpine
    environment:
      POSTGRES_USER: vikunja
      POSTGRES_PASSWORD: "${DB_PASSWORD}"
      POSTGRES_DB: vikunja
    volumes:
      - dbdata:/var/lib/postgresql
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U vikunja"]
      interval: 10s
      timeout: 5s
      retries: 5
    networks: [intern]
    restart: unless-stopped

volumes:
  files:
  dbdata:

networks:
  proxy:
    external: true
  intern:
    internal: true

Four decisions in there are worth a look. VIKUNJA_SERVICE_PUBLICURL is not cosmetic: the interface runs in the browser and calls its own API through this address. Get it wrong and the page loads while nothing inside it works. ENABLEREGISTRATION: "false" turns off open registration; what that means for your own account is in step 4.

The database only sits on the intern network (internal: true) and publishes no port. It is unreachable from the internet and from the proxy network alike. Its mount is /var/lib/postgresql, not /var/lib/postgresql/data. As of PostgreSQL 18 the container refuses to start with the old path, even on an empty volume.

Step 3: The first start fails

Here comes the stumbling block no quick-start guide mentions. Start the stack:

Terminal
docker compose up -d
Terminal
docker compose logs vikunja --tail 5
Ausgabe
level=ERROR msg="Could not init file handler: storage validation failed: failed to create
test file: mkdir /app/vikunja/files/.tmp: permission denied
[process uid=1000 gid=0, dir owner uid=0 gid=0]"

The container runs as user 1000, but the freshly created volume belongs to root. Vikunja cannot store anything there and restarts in a loop. The message says so itself: process uid=1000, dir owner uid=0.

Fix it once with a helper container, because the Vikunja image ships no shell for --user root:

Terminal
docker run --rm -v vikunja_files:/f alpine:3.24 chown -R 1000:1000 /f
Terminal
docker compose up -d --force-recreate vikunja
Terminal
docker compose logs vikunja --no-log-prefix | grep -E "successfully|version v|listening"
Ausgabe
time=2026-11-24T08:28:58.663Z level=INFO msg="Ran all migrations successfully."
time=2026-11-24T08:28:58.668Z level=INFO msg="Vikunja version v2.8.0"
time=2026-11-24T08:28:58.842Z level=INFO msg="HTTP server listening on :3456"

Now it runs. The volume name vikunja_files is the folder name plus the volume name. If your folder is called something else, adjust it (docker volume ls shows the real names).

Step 4: Your first account, although registration is closed

Open https://vikunja.YOUR_DOMAIN. Traefik has fetched the certificate by now:

The Vikunja login page with username and password fields and a note about the installation in use
The login page names the address of the installation it talks to. A good first test of whether PUBLICURL is right.

Here the second stumbling block waits: there is no link to register, and you do not have an account yet. The switch from step 2 turned registration off before you could sign up. Without it, though, registration would be open to anybody who knows the address. The check from outside:

Terminal
curl -X POST -H 'Content-Type: application/json' \
  -d '{"username":"stranger","email":"stranger@example.org","password":"Something-123456"}' \
  https://vikunja.YOUR_DOMAIN/api/v1/register
Ausgabe
without ENABLEREGISTRATION=false  -> HTTP 200   (account was created)
with    ENABLEREGISTRATION=false  -> HTTP 404   {"message":"Not Found"}

Mind the order

For your own account you open registration briefly. Set VIKUNJA_SERVICE_ENABLEREGISTRATION: "true", restart with docker compose up -d vikunja, register through the interface, set the value back to "false" and restart once more. Your account and your session are unaffected.

You add further users the same way for a few minutes, or create them on the server: docker compose exec vikunja /app/vikunja/vikunja user create -u NAME -e MAIL -p PASSWORD.

Step 5: One project, four views

Create your first project via Projects → New project. Vikunja automatically builds four views onto the same tasks; you configure nothing:

The list view of a Vikunja project with six open tasks, coloured labels and the input field for adding tasks
List view: input field on top, labels right on the task, tabs for the other three views

The tabs at the top switch between views. The same project as a Kanban board:

The same project as a Kanban board with To-Do, Doing and Done columns and task cards carrying labels
Kanban with three default columns. Drag cards with the mouse, and the done column ticks tasks off automatically.

The columns start out as To-Do, Doing and Done; renaming and adding happens through the three-dot menu on each column. Move a card into the done column and Vikunja ticks the task off automatically; move it back to another column and it is open again.

And as a Gantt chart:

The Gantt view with six bars spread across late November and December 2026
The Gantt view: one bar per task with a start and an end date

A bar runs from the start date to the end date. If a task only has a due date, Vikunja draws a bar that fades in towards the due date. For real scheduling both dates are still worth setting, otherwise you cannot read the duration.

Step 6: Creating tasks in one line

The input field above the list takes more than plain text. It evaluates three shorthands directly, and the question mark on the right of the field shows them at any time:

ShorthandEffect
*nameattaches the label name
!1 to !5sets the priority
28.11.2026sets the due date

Typed out it looks like this:

Ausgabe
Check logrotation 28.11.2026 !1

That becomes a task titled “Check logrotation” with a due date of 28 November 2026 and priority 1. The date vanishes from the title because it was recognised.

Relative dates only work in English

English words such as tomorrow are recognised; the same word in another language is not: Renew certificate morgen *urgent !3 becomes a task called “Renew certificate morgen”. Label and priority stick, but the word stays in the title and no date is set. A written-out date is the reliable option.

Step 7: What a task can hold

Clicking a task opens the detail view. The right-hand column shows how far the data model reaches:

The detail view of a task with start and end date, label, description editor and the right-hand column of all actions
On the right the full toolbar: priority, progress, assignment, attachments, relations, reminders and repeats

Three of those earn their keep in daily use. Relations link tasks as predecessor, follower, subtask or duplicate, which expresses an order without splitting everything into sub-projects. Repeats create the next instance automatically after you tick a task off, for anything that comes round monthly. And reminders can be relative, such as “one day before the due date”. Vikunja needs a mail server for those, though; without one the log says Mailer is disabled, not sending reminders per mail.

Step 8: Sharing with others and with your phone

A project does not have to stay with you. The three-dot menu next to the project name leads to Share with three levels: Read only, Read & write or Admin. The other account then sees the project in its own list, with nothing copied.

For recurring groups a team under Teams in the sidebar is the better fit: share the project with the team once, and afterwards you only maintain the member list.

Search only finds people who want to be found

If somebody does not show up in the share search, it is usually not a typo. Every account decides in its own settings whether it is discoverable by username or email address. If you cannot find the person, they have to flip that switch themselves; you cannot do it for them.

And for mobile you need no app: Vikunja speaks CalDAV, so your projects appear as task lists in the iOS Reminders app, in Tasks.org on Android or in Thunderbird. The address is:

Ausgabe
https://vikunja.YOUR_DOMAIN/dav/principals/YOUR_USERNAME/

Log in with username and password. Check the endpoint from the terminal. Without credentials it must answer 401, with them 207:

Terminal
curl -s -o /dev/null -w "%{http_code}\n" -X PROPFIND \
  https://vikunja.YOUR_DOMAIN/dav/principals/YOUR_USERNAME/
Ausgabe
401

CalDAV bypasses your second factor

The DAV endpoint uses username and password directly. Whoever has that password reaches your tasks, regardless of whether you enabled a second factor for the web interface. A long, dedicated password is not a luxury here.

Step 9: Limits and licence

Self-hosting is free and has no user limit; all core features are included. On start Vikunja still writes one line to the log:

Ausgabe
level=WARN msg="No license key configured. Pro features have been disabled."

Behind the Pro licence sit mainly an admin panel, audit logs and time tracking. Anyone planning to bill projects through Vikunja should know that up front; for task management in the narrow sense nothing is missing.

Second limit worth knowing before migrating: this version ships importers for vikunja-file, ticktick, wekan, csv and planka. Todoist is not among them. Coming from there, export to CSV and take the CSV route. Query your own installation like this:

Terminal
curl -s https://vikunja.YOUR_DOMAIN/api/v1/info
Ausgabe
"available_migrators": ["vikunja-file","ticktick","wekan","csv","planka"]

The same output is the best smoke test after setup: if it shows your version and your real address under frontend_url, the wiring is right.

When things go wrong

The log says permission denied and [process uid=1000 gid=0, dir owner uid=0 gid=0]. The freshly created volume belongs to root while Vikunja runs as user 1000. Fix the ownership once with a helper container: docker run --rm -v vikunja_files:/f alpine:3.24 chown -R 1000:1000 /f, then restart with docker compose up -d --force-recreate vikunja. --user root does not work here because the image contains no /etc/passwd.

After the start there is no link to register, and you cannot log in either. VIKUNJA_SERVICE_ENABLEREGISTRATION: "false" turned registration off before any account existed. Set the value to "true" briefly, restart with docker compose up -d vikunja, register and switch back to "false" afterwards. Alternatively create the account on the server: docker compose exec vikunja /app/vikunja/vikunja user create -u NAME -e MAIL -p PASSWORD.

The page loads but every action fails or spins forever. Then VIKUNJA_SERVICE_PUBLICURL does not point at the address you actually use. The interface calls its own API through that value. Check with curl -s https://vikunja.YOUR_DOMAIN/api/v1/info what frontend_url says and fix the .env if needed.

The database container will not start and complains about an unused mount. As of PostgreSQL 18 the volume belongs at /var/lib/postgresql rather than /var/lib/postgresql/data; the images store data per major version under 18/docker. With the old path startup aborts, even on an empty volume.

Reminders never arrive. The log then says Mailer is disabled, not sending reminders per mail. Without a configured mail server Vikunja sends nothing. The reminder exists, it just never reaches you. Either supply SMTP credentials through the VIKUNJA_MAILER_* variables or stick to the in-app notifications.

Your problem is not listed? Search all error messages →

Maintenance & backups

Updates go through the image tag. Vikunja moves quickly, so read the changelog before you raise the number:

Terminal
cd /opt/vikunja && docker compose pull && docker compose up -d

Database migrations run automatically on start; afterwards the log says Ran all migrations successfully. How to keep the whole stack current systematically is in Keep your Docker stack updated.

Two things matter for backups, and the volume alone is not enough: the PostgreSQL database with all tasks, and the files volume with the attachments. The database needs a consistent dump, not a copy of the running volume. Why that is so is covered at length in Database backups with Docker (Tutorial expected in December). Restic then moves the dumps and the file directory off the server.

Once a quarter two small things are worth a check: whether registration is still turned off (it is easy to forget switching it back after an experiment) and whether anybody in the user list no longer belongs there.

You might also like