Vikunja is an open-source task and project manager you can run on hardware you control. If your to-do lists, household projects, or team work are spread across SaaS apps, self-hosting Vikunja with Docker Compose gives you one place to plan work without handing your data to a third party. This guide walks through a practical PostgreSQL deployment, the file-permission setup Vikunja expects, a reverse-proxy option, and the maintenance steps that keep the instance reliable.
The goal is a production-style homelab install: persistent data, predictable startup, and a URL you can bookmark from every device on your network.
Why Run Vikunja in a Homelab
Task managers are simple to start and surprisingly expensive to replace once they hold years of projects, habits, and routines. Running Vikunja yourself means you choose the backup schedule, the upgrade window, and who can access the service. It also fits naturally beside other services you may already run, such as a dashboard, reverse proxy, or monitoring stack.
Vikunja supports lists, Kanban-style views, filters, reminders, and sharing features that make it useful for both personal and small-team planning. Docker Compose keeps the application and database packaged as a repeatable stack, so rebuilding a host or moving to new hardware is mostly a matter of restoring volumes and environment variables.
If you are building out a self-hosted environment, you may also want to read how to run Portainer CE with Docker, deploy Traefik as a Docker reverse proxy, and self-host Umami analytics with Docker. Those guides pair well with Vikunja because they cover container management, HTTPS routing, and privacy-friendly service visibility.
Before You Start
You need a Linux host with Docker Engine and Docker Compose installed. A small VPS, mini PC, or Raspberry Pi-class device with enough memory for PostgreSQL and the Vikunja container is usually sufficient for personal use. Pick a directory for the stack, such as /opt/vikunja, and decide how you will reach the app: a local port, a LAN hostname, or a public domain behind TLS.
Vikunja’s official full Docker example uses PostgreSQL in its main examples and notes that Vikunja supports PostgreSQL, MySQL, and SQLite as database backends. PostgreSQL is a strong default for a homelab because it is well tested, easy to back up, and suitable when more than a handful of users depend on the service.
You also need two persistent locations on the host:
./filesfor user-uploaded files./dbfor PostgreSQL data
Create them before the first start and set ownership so the container can write to the files directory.
mkdir -p /opt/vikunja/files /opt/vikunja/db
cd /opt/vikunja
sudo chown 1000 ./files
Vikunja runs as user 1000 by default, according to the official Docker documentation. The image does not try to take ownership of the files directory because that would require running as root. On rootless Docker setups, permissions behave differently due to user namespace remapping; the official docs recommend running the Vikunja container as user: "0:0" in that specific case because rootless Docker maps container root to your unprivileged host user.
Docker Compose Stack with PostgreSQL
Create a compose.yml file in your stack directory. This example is based on Vikunja’s official Docker guidance: it sets a public URL, stores secrets in environment variables, mounts a files directory, and waits for PostgreSQL to become healthy before starting the app.
services:
vikunja:
image: vikunja/vikunja
environment:
VIKUNJA_SERVICE_PUBLICURL: http://vikunja.example.com
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_PASSWORD: changeme
VIKUNJA_DATABASE_TYPE: postgres
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_SECRET: replace-with-a-long-random-secret
ports:
- "3456:3456"
volumes:
- ./files:/app/vikunja/files
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:18
environment:
POSTGRES_PASSWORD: changeme
POSTGRES_USER: vikunja
POSTGRES_DB: vikunja
volumes:
- ./db:/var/lib/postgresql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -h localhost -U $$POSTGRES_USER"]
interval: 30s
start_period: 15s
start_interval: 5s
Replace the placeholder values before starting the stack:
- Set
VIKUNJA_SERVICE_PUBLICURLto the exact URL users will open in their browser, includinghttp://orhttps://. - Generate a strong random value for
VIKUNJA_SERVICE_SECRET. - Use a unique database password and keep it identical in both services.
- If you only need local access, you can use
http://localhost:3456or your host’s LAN address.
The VIKUNJA_SERVICE_PUBLICURL value matters because the frontend uses it to make requests. If the URL is wrong, the interface may load but API calls can fail from another device.
Start and Verify the Service
Launch the stack from the directory containing compose.yml:
docker compose up -d
docker compose ps
docker compose logs -f vikunja
When the containers are healthy, open the public URL you configured. Vikunja should present its interface and let you create the first account. If you plan to expose the service beyond your trusted network, register your users first and then review the official configuration option for disabling registration so random visitors cannot create accounts.
A quick verification checklist helps catch common mistakes early:
- The
vikunjacontainer stays running after startup. - The
dbcontainer reports a healthy state. - Uploaded attachments appear in
./fileson the host. - The browser can reach the same URL you set in
VIKUNJA_SERVICE_PUBLICURL.
Optional Reverse Proxy with Caddy
Running Vikunja behind a reverse proxy gives you cleaner URLs and TLS certificates. Vikunja’s official documentation includes a Caddy example. A minimal Caddyfile looks like this:
vikunja.example.com {
reverse_proxy vikunja:3456
}
In that setup, Caddy terminates HTTPS and forwards traffic to the Vikunja container. Your VIKUNJA_SERVICE_PUBLICURL should be https://vikunja.example.com. If you publish ports 80 and 443 from Caddy, you can usually remove the direct 3456:3456 port mapping from the Vikunja service and keep traffic flowing through the proxy network.
Choose a reverse proxy you already understand. Traefik, Nginx Proxy Manager, and Caddy all work; the important part is that the external URL, certificate, and forwarded host match what Vikunja expects.
Backups, Updates, and Operations
A self-hosted task manager is only as useful as its last restore test. Back up both the PostgreSQL data and the ./files directory, because tasks and attachments live in different places. A simple host-level backup can copy the files directory and run pg_dump against the database container.
docker compose exec -T db pg_dump -U vikunja vikunja > /opt/vikunja/vikunja-db.sql
tar -czf /opt/vikunja/vikunja-files.tar.gz -C /opt/vikunja files
Store copies on another disk or another machine. After changing backup scripts, practice restoring into a test directory or separate stack so you know the data is usable.
For updates, pull the new image and recreate the container:
docker compose pull
docker compose up -d
docker image prune -f
Read release notes before major upgrades, especially if you rely on integrations or custom configuration. Keep your Compose file in version control or a private notes repository so changes to ports, domains, and secrets are documented.
FAQ
Can I use SQLite instead of PostgreSQL?
Yes. Vikunja supports SQLite, PostgreSQL, and MySQL. SQLite can be fine for a single user or light testing, but the official documentation recommends PostgreSQL or MySQL for instances used by more than a handful of users.
Do I need a reverse proxy?
No. The official examples show a setup without any proxy using a published port. A reverse proxy becomes useful when you want HTTPS, a friendly domain name, or to place several services behind one entry point.
Why can’t Vikunja write uploaded files?
The most common cause is incorrect ownership or permissions on the mounted ./files directory. Vikunja runs as user 1000 by default, so the directory must be writable by that user. On rootless Docker, follow the official guidance for user namespace remapping.
How do I disable new user registration?
After you create the accounts you need, set the registration-related service option in Vikunja’s configuration. The official docs point to service.enableregistration in the configuration options.
Is Vikunja only for teams?
No. Vikunja works well for personal planning, home projects, and study schedules. The same Docker Compose deployment can start small and grow later if you invite family members or collaborators.
With a persistent database, correct file permissions, and a tested backup routine, Vikunja becomes a dependable part of a self-hosted productivity stack. Start with the basic Compose setup, confirm the public URL works from every client you care about, and then add HTTPS or automation once the core service is stable.