The HYEHOST bear in a Halloween cape beside glowing server pumpkinsThe HYEHOST bear enjoying Bonfire Night with fireworks and a glowing server cabinet
A little extra this HalloweenLight up your balance

Your Halloween credit treatYour Bonfire Night boost

+15% extra account credit

Add $5–$100 USD to your HYEHOST account and receive 15% extra credit automatically.Add $5 USD or more and receive 15% extra credit automatically, with no maximum top-up amount.

Add $5
$5.75account credit at 15%25% upgrade · $6.25
Add $25
$28.75account credit at 15%25% upgrade · $31.25
Add $100$1,000
$115$1,150account credit at 15%25% upgrade · $1,250
  1. Log in to your HYEHOST account.
  2. Open Billing and add $5–$100 credit.add at least $5 USD, with no maximum.
  3. Your bonus is added automatically. No code needed.

Valid for qualifying $5–$100 USD top-ups on 31 October 2026, until 23:59 UK time.Updated offer available until midnight UK time at the end of 5 November 2026. Minimum top-up $5 USD, with no maximum amount. The 25% bonus replaces the usual 15% when selected.

Log in and add credit
HYEHOST

Self-Host Vikunja on a VPS with Docker and HTTPS

Install Vikunja on a VPS with Docker Compose, PostgreSQL and HTTPS. Create private accounts, organise tasks and projects, and back up your team workspace.

Set up VikunjaCreate private accounts
HYEHOST bear mascot presenting an illustrated task board and calendar above a glowing VPS server

What is Vikunja, and why put it on a VPS?

Vikunja is a self-hosted task manager for personal projects and small teams. You can organise work into projects, assign tasks and switch between list, table, Kanban and Gantt views. A VPS gives that workspace a stable address without depending on a computer at home staying online. See the core feature overview.

The 2.8.0 release on 5 November 2026 adds a trash system for tasks and projects, explicit OpenID account linking and security fixes. This walkthrough uses that release, PostgreSQL and Caddy. It is a deployment guide: test your own workflow and recovery process before moving a team's working data.

A shared task list

Keep assignments, due dates and progress in one place. Give a project a clear owner and make the next action easy to find.

Views for different work

Use a list for routine jobs, a board for work in progress or a timeline for dependencies. Start with one project before adding more structure.

Your own deployment

Choose the hostname, region and update schedule. Keep a recovery copy outside the server so the workspace can survive a failed VM.

Prepare the server, hostname and storage

Use a fresh Linux VPS with Docker Engine and the Compose plugin. A VM with 2 GB RAM is a reasonable starting point for evaluating a small workspace with its database and proxy; this is our sizing suggestion, not a measured minimum. Watch memory use and attachment growth before deciding the production size.

The application and database stay private; the HTTPS proxy is the public entry point.
ComponentPurposeConfiguration
tasks.example.comWorkspace hostnameReplace it with your domain and point its A record to the VPS
TCP 80 and 443Caddy HTTP and HTTPSAllow inbound and check that no existing proxy occupies the ports
Vikunja port 3456Private app and APIReachable inside the Compose project; no host port is published
Database and filesWorkspace persistenceLocal PostgreSQL volume plus a separate attachment directory

Only publish an AAAA record if IPv6 reaches the same HTTPS service. Keep SSH access available while changing firewall rules. Our Docker installation guide covers the engine and Compose prerequisites.

Create the Docker Compose files

On the VPS, make a project directory and check the tools. Run the Docker commands through an account authorised to manage containers:

mkdir -p "$HOME/vikunja"
cd "$HOME/vikunja"
docker version
docker compose version
openssl version
sudo ss -ltnp

Generate a persistent application secret and database password. This command refuses to overwrite an existing .env; do not regenerate those values as part of an ordinary restart:

(
  set -eu
  umask 077
  set -C
  printf 'VIKUNJA_SECRET=%s\nPOSTGRES_PASSWORD=%s\n' \
    "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
)

Create the attachment directory and give Vikunja's container user permission to write it. The official Docker walkthrough documents UID 1000 for the standard image. Rootless Docker needs its own ownership mapping.

mkdir -p files
sudo chown 1000:1000 files
sudo chmod 0750 files

Save this as compose.yaml, changing the public hostname first. It uses a supported PostgreSQL 18 patch image and keeps database storage at the location expected by that image. Check the official PostgreSQL image documentation.

services:
  db:
    image: postgres:18.7-alpine
    restart: unless-stopped
    environment:
      POSTGRES_USER: vikunja
      POSTGRES_DB: vikunja
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
    volumes:
      - postgres-data:/var/lib/postgresql
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U $$POSTGRES_USER -d $$POSTGRES_DB"]
      interval: 5s
      timeout: 5s
      retries: 10
      start_period: 30s

  vikunja:
    image: vikunja/vikunja:2.8.0
    restart: unless-stopped
    environment:
      VIKUNJA_SERVICE_PUBLICURL: https://tasks.example.com/
      VIKUNJA_SERVICE_SECRET: ${VIKUNJA_SECRET:?Set VIKUNJA_SECRET in .env}
      VIKUNJA_SERVICE_ENABLEREGISTRATION: "false"
      VIKUNJA_SERVICE_ENABLELINKSHARING: "false"
      VIKUNJA_SERVICE_IPEXTRACTIONMETHOD: xff
      VIKUNJA_DATABASE_TYPE: postgres
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_DATABASE_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
    volumes:
      - ./files:/app/vikunja/files
    depends_on:
      db:
        condition: service_healthy

  caddy:
    image: caddy:2.11.9-alpine
    profiles: [public]
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - caddy-data:/data
      - caddy-config:/config
    depends_on:
      - vikunja

volumes:
  postgres-data:
  caddy-data:
  caddy-config:

The application secret is kept in .env and supplied through VIKUNJA_SERVICE_SECRET, the current setting in the configuration reference. Compose reads that file for variable substitution. It contains credentials: restrict access and keep it out of Git. Neither Vikunja nor PostgreSQL publishes a host port.

In the same directory, save a file named Caddyfile using the same domain:

tasks.example.com {
    encode zstd gzip
    reverse_proxy vikunja:3456
}

Caddy connects using the service name on the project's Docker network. Its own localhost would refer to the proxy container. Certificate state persists in caddy-data. The public profile lets you configure accounts before starting that public entry point. Read how Compose profiles work.

Create the first account with registration closed

Validate the file and start only the database and application. The public proxy stays stopped:

docker compose config --quiet
docker compose pull db vikunja
docker compose up -d db vikunja
docker compose ps
docker compose logs --tail=80 vikunja

Wait for the application to finish its database migrations and start listening. Then replace the username and email below and run the account command in your interactive SSH terminal:

docker compose exec vikunja /app/vikunja/vikunja user create \
  --username YOURNAME --email YOU@YOURDOMAIN

Enter a unique password at the prompt. Leaving it out of the command avoids putting it into shell history; keep the default interactive terminal rather than adding -T. Repeat the command with different details when you need another account. This is ordinary account creation, not a promise of access to the paid administration dashboard. See the documented user commands.

The Vikunja image contains the app and frontend, but no general-purpose shell. Commands such as docker compose exec vikunja sh will not work. Use its binary and service logs instead. There is no shared default password to leave exposed in this setup.

Start Caddy and check the HTTPS workspace

Confirm DNS points to this server and TCP 80/443 are reachable. Caddy can then obtain and renew a certificate for the hostname. If those ports are already used, integrate with the existing proxy rather than starting a competing listener. Review Caddy's automatic HTTPS requirements.

docker compose --profile public pull caddy
docker compose --profile public up -d
docker compose --profile public ps
docker compose --profile public logs --tail=80 caddy
curl -I https://tasks.example.com

Open the HTTPS address, sign in and create a test task. The configured public URL must match that address, including https://; mismatches can cause browser-to-API problems. Check the certificate, login and attachment upload before inviting other people. Read Vikunja's reverse-proxy guidance.

The xff setting makes the app use the client address forwarded by Caddy. It assumes requests arrive through trusted proxies. Keep this project on a trusted Docker host, leave the application port unpublished and do not attach untrusted containers to its network. Follow the upstream security checklist.

Build a useful workspace before importing everything

Try one real workflow first. For example, create a project for website maintenance, add tasks for an update, a backup test and a DNS check, then assign an owner and due date to each. This exposes permission or notification gaps before the app becomes the only place your team tracks work.

Test access

Sign in as a second user and check which projects are visible. Give each person the access their work needs rather than sharing one account.

Keep boards manageable

Start with a few clear stages such as planned, active and complete. Make sure moving a task matches the way the team actually works.

Check real files

Upload a small attachment, open it from another account and confirm the intended permission boundaries. Include that file in the first restore test.

Registration and public sharing are separate controls. Both are disabled in this example. Add team members with the CLI, then share projects with their accounts through the app. Configure and test SMTP separately if you need email reminders or password-reset messages; this Compose file does not provide an outbound mail service.

Some features need a Vikunja Pro licence. Check the current feature list before planning around an admin panel, audit features or other paid additions. A HYEHOST VPS subscription covers the server, not an application licence or ongoing administration of the workspace.

Back up PostgreSQL and attachments together

A database dump alone cannot restore uploaded attachments. Keep both parts, along with .env, the Compose file, Caddyfile and recorded image versions. Vikunja's backup guide identifies database and file storage as separate recovery requirements.

The following example pauses the app while PostgreSQL stays running. It takes a database dump and copies the attachment directory, then attempts to restart Vikunja on exit. Run it from the project directory; users will see an interruption while the application is stopped.

(
  set -eu
  umask 077
  backup_dir="$HOME/vikunja-backups/$(date -u +%Y%m%dT%H%M%SZ)"
  mkdir -p "$backup_dir"
  trap 'docker compose start vikunja >/dev/null' EXIT
  docker compose stop vikunja
  docker compose exec -T db pg_dump -U vikunja -d vikunja -Fc \
    > "$backup_dir/database.dump"
  docker compose cp vikunja:/app/vikunja/files "$backup_dir/files"
  cp .env compose.yaml Caddyfile "$backup_dir/"
  printf 'Backup directory: %s\n' "$backup_dir"
)

Check the command's exit status and files, then confirm the application is running again. A failed command can leave an incomplete backup directory. This assumes this app is the only writer to its database and attachments; account for any additional integrations or writers in your own procedure. See PostgreSQL's pg_dump reference for the custom-format archive used here.

Copy successful backups to a separate destination and protect them as sensitive data: they include account data, tasks and secrets. Our encrypted Storage Box backup guide shows an off-server workflow. Automate only after a manual backup and recovery test work, and monitor the scheduled job's result.

Rehearse recovery and plan updates

Restore into an isolated installation with an empty PostgreSQL database and the recorded application version. Import the custom-format dump using pg_restore, restore the files with the correct ownership and reuse the retained application configuration deliberately. Keep the test hostname, mail delivery and integrations separate from production. Confirm an existing task, user access and attachment before treating the backup as usable.

For an update, read the target release notes, take a verified backup and change the Vikunja image tag in compose.yaml. Then recreate the application:

docker compose pull vikunja
docker compose up -d vikunja
docker compose logs --tail=80 vikunja
docker compose --profile public ps

Test login, permissions, task editing and file downloads. Update Caddy and PostgreSQL on their own reviewed schedules. A PostgreSQL major upgrade needs a migration plan; do not point a new major version at the existing database volume. If an application upgrade changes the schema, recover from the tested backup rather than blindly changing to an older image.

Vikunja 2.8.0's trash retains deleted tasks and projects for 30 days. It helps with accidental deletion, but is stored inside the same installation and can also be emptied. It cannot recover a failed server. Keep scheduled VM backups and application-aware recovery copies as planned layers.

Common Vikunja Docker problems

Check the failing layer before changing the deployment.
SymptomCheck firstNext action
App cannot connect to PostgreSQLDatabase health and credentialsInspect logs; changing .env alone does not change an existing database user's password
Attachment upload failsfiles directory and free disk spaceVerify container UID permissions; do not solve it with world-writable permissions
Login or API requests failPublic URL and HTTPS hostnameCorrect the hostname, scheme and proxy destination, then recreate Vikunja
Caddy shows a gateway errorApp startup logsWait for migrations or resolve the application error; the proxy depends on startup, not an app health check
No reset or reminder emailsSMTP configurationConfigure a suitable mail service and test delivery; it is not included in this example

Choose a VPS for the people using the workspace

HYEHOST Cloud VPS is available in Wolverhampton, Ashburn and Auckland. Pick a region that suits the people using the task manager, with enough RAM for the database and room for attachment growth. A separate VM also makes it easier to schedule maintenance without coupling the workspace to an unrelated website.

Vikunja VPS hosting FAQ

Can I self-host Vikunja on a VPS?

Yes. This guide uses a Linux VPS with Docker Compose, PostgreSQL, persistent attachment storage and Caddy for HTTPS. Start with a small test workspace and size the server from measured memory, storage and concurrency needs.

Does Vikunja need a separate frontend container?

Not for the version used here. The Vikunja 2.8.0 image serves both the application frontend and API on port 3456. Caddy connects to that private container port.

How do I create a Vikunja account with registration disabled?

Use the application's user create command through docker compose exec, with a username and email address. Leave the password flag out to enter it at the interactive prompt. Public registration can stay disabled.

Should I publish port 3456 to the internet?

This deployment does not publish Vikunja or PostgreSQL ports on the host. Only Caddy exposes public TCP ports 80 and 443; it forwards requests to Vikunja on the project's private Docker network.

Is self-hosted Vikunja free?

The core application is open source. Some additional features require a Vikunja Pro licence. Check the current feature and licence information; the VPS and any paid application licence are separate costs.

What should I back up for Vikunja?

Keep a consistent copy of the PostgreSQL database and attachment files, plus the deployment configuration, persistent application secret and recorded image versions. Store a protected off-server copy and test recovery on a separate installation.

Does Vikunja's trash replace a backup?

No. Version 2.8.0 allows recovery from the trash for 30 days, but permanent deletion, server loss and database failures still require a working independent backup.