15 KiB
title, description, navigation
| title | description | navigation | ||
|---|---|---|---|---|
| Installation | Install and deploy TaskView using Docker Compose. Step-by-step setup guide for a self-hosted task management server with PostgreSQL, Node.js API, and Vue web app. Deploy on any server in 5 minutes. |
|
TaskView runs as a set of Docker containers - a database, an S3-compatible file storage, an API server, a web app, and a one-time migration runner. The whole setup takes about 5 minutes.
Prerequisites
- A server or local machine with Docker and Docker Compose installed
- Ports
8888(web) and1725(API) available - you can change these in the compose file
Step 1: Create a project directory
mkdir taskview && cd taskview
Step 2: Create environment files
You need three env files - one for PostgreSQL, one for the file storage, one for the TaskView API.
.env.postgresql - database credentials:
POSTGRES_USER=taskview_db_user
POSTGRES_PASSWORD=your_secure_password
POSTGRES_DB=taskviewdb
.env.seaweedfs - file storage credentials and the bucket that is created on the first start:
AWS_ACCESS_KEY_ID=taskview
AWS_SECRET_ACCESS_KEY=your_secure_storage_secret
S3_BUCKET=taskview
.env.taskview - application config (example, do not forget add your data):
DB_HOST="db"
DB_USER="taskview_db_user"
DB_PASSWORD="your_secure_password"
DB_NAME="taskviewdb"
DB_PORT=5432
# Postgres connections per API worker (this is the default)
DB_POOL_MAX=20
APP_PORT=1401
# API worker processes (this is the default). Accepts a number or "max" (one worker per CPU core).
# Keep PM2_INSTANCES x DB_POOL_MAX below the Postgres max_connections limit (default 100).
PM2_INSTANCES=2
JWT_ALG="HS256"
JWT_SIGN="secret"
ACCESS_LIFE_TIME="3d"
REFRESH_LIFE_TIME="9d"
# Task attachments: stored in the bundled S3-compatible storage (the seaweedfs service in the compose below).
# The bucket and the keys must match .env.seaweedfs. Attachments also need ENCRYPTION_KEY (below).
FILE_STORAGE_PROVIDER=s3
FILE_STORAGE_S3_ENDPOINT=http://seaweedfs:8333
FILE_STORAGE_S3_BUCKET=taskview
FILE_STORAGE_S3_REGION=us-east-1
FILE_STORAGE_S3_ACCESS_KEY=taskview
FILE_STORAGE_S3_SECRET_KEY=your_secure_storage_secret
FILE_STORAGE_S3_FORCE_PATH_STYLE=true
SMTP_HOST=smtp
SMTP_PORT=587
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_ENCRYPTION=tls
SMTP_FROM_NAME=TaskView
SMTP_FROM_EMAIL=
# Your domain
APP_URL="https://app.taskview.tech"
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
#You domain
GOOGLE_CALLBACK_URL="https://api.taskview.tech/module/auth/provider/google/callback"
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
GITHUB_CALLBACK_URL="https://api.taskview.tech/module/auth/provider/github/callback"
APPLE_CLIENT_ID=""
APPLE_TEAM_ID=""
APPLE_KEY_ID=""
APPLE_KEY_LOCATION="/usr/src/app/AuthKey.p8"
# Your domain
APPLE_CALLBACK_URL="https://api.taskview.tech/module/auth/provider/apple/callback"
#integrations
GITHUB_INTEGRATION_CLIENT_ID=
GITHUB_INTEGRATION_CLIENT_SECRET=
GITHUB_INTEGRATION_CALLBACK_URL=https://api.taskview.tech/module/integrations/oauth/github/callback
GITLAB_INTEGRATION_CLIENT_ID=
GITLAB_INTEGRATION_CLIENT_SECRET=
GITLAB_INTEGRATION_CALLBACK_URL=https://api.taskview.tech/module/integrations/oauth/github/callback
# Required for attachments, SSO and integrations. Generate with: openssl rand -hex 32
ENCRYPTION_KEY=
#!!! ADD YOUR DOMAIN SEPARATED BY ","
CORS_ALLOWED_ORIGINS="http://localhost:5173,http://127.0.0.1:5173,http://localhost:3000,http://localhost:8888,http://127.0.0.1:3000,http://127.0.0.1:8888"
::callout{icon="i-lucide-shield" color="warning"}
Replace your_secure_password, your_secure_storage_secret and JWT_SIGN with real secrets, and set ENCRYPTION_KEY (openssl rand -hex 32). Never use the example values in production.
::
The storage secret appears in two files and must be the same in both: AWS_SECRET_ACCESS_KEY in .env.seaweedfs and FILE_STORAGE_S3_SECRET_KEY in .env.taskview. The same goes for the access key and the bucket name. Keep the env files readable only by the user that runs Docker (chmod 600 .env.*).
Step 3: Create docker-compose.yml
networks:
backend:
services:
db:
image: postgres:17
restart: unless-stopped
env_file:
- ./.env.postgresql
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U taskview_db_user -d taskviewdb"]
interval: 5s
timeout: 5s
retries: 5
networks: [backend]
# S3-compatible storage for task attachments. It is reachable only inside the backend network:
# the API streams files to the browser itself, so do not publish the ports of this service.
seaweedfs:
image: chrislusf/seaweedfs:4.56
restart: unless-stopped
command: mini -dir=/data -master.telemetry=false -webdav=false -admin.ui=false
env_file:
- ./.env.seaweedfs
volumes:
# Uploaded files live here. Keep this volume, otherwise they vanish when the container is recreated.
- seaweedfs-data:/data
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8333/status"]
interval: 5s
timeout: 5s
retries: 20
networks: [backend]
migration:
image: gimanhead/taskview-ce-db-migration:latest
restart: "no"
depends_on:
db:
condition: service_healthy
env_file:
- ./.env.taskview
environment:
# CHANGE THIS before the first start: password of the first account (login: user).
# 6 to 128 characters. It is read only once, when the database is created.
# If left empty, no account is created.
INITIAL_USER_PASSWORD: ""
networks: [backend]
taskview-api-server:
image: gimanhead/taskview-ce-api-server:latest
restart: "unless-stopped"
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
- net.ipv6.conf.default.disable_ipv6=1
ports:
- "1725:1401"
depends_on:
db:
condition: service_healthy
migration:
condition: service_completed_successfully
seaweedfs:
condition: service_healthy
env_file:
- ./.env.taskview
volumes:
- ./logs:/usr/src/app/logs
#- /local/AuthKey.p8:/usr/src/app/AuthKey.p8
networks: [backend]
taskview-webapp:
image: gimanhead/taskview-ce-webapp:latest
restart: unless-stopped
environment:
# The web app will always use this API server and hide the server selector on the login page.
# Remove this variable if you want to pick the API server manually on the login page.
TASKVIEW_API_URL: "http://localhost:1725"
ports:
- "8888:80"
# Enable to let AI assistants (Claude Code, Cursor, ...) work with your instance
# over MCP, read https://taskview.tech/docs/integrations/mcp
# taskview-mcp:
# image: gimanhead/taskview-ce-mcp:latest
# restart: unless-stopped
# environment:
# TASKVIEW_URL: "http://taskview-api-server:1401"
# TASKVIEW_APP_URL: "http://localhost:8888"
# ports:
# - "3100:3100"
# depends_on:
# - taskview-api-server
# networks: [backend]
# Enable for realtime notification read https://taskview.tech/docs/configuration/environment-variables#centrifugo-configuration-file
# centrifugo:
# image: centrifugo/centrifugo:v6
# restart: unless-stopped
# command: centrifugo -c config.json
# ports:
# - "8000:8000"
# volumes:
# - /path-to/centrifugo/config.json:/centrifugo/config.json
# networks: [backend]
volumes:
pgdata:
seaweedfs-data:
Step 4: Start everything
docker compose up -d
Docker will pull the images, start the database and the file storage, create the bucket, run migrations, and launch the API and web app.
Step 5: Open TaskView
Go to http://localhost:8888 in your browser. You'll see the login screen.
Configure the API server
The web app (port 8888) serves the frontend, while the API server (port 1725) handles authentication, projects, tasks, and all backend operations.
If you set TASKVIEW_API_URL on the taskview-webapp service (as in the compose file above), there is nothing to configure — the web app already knows where the API is, and the server selector is hidden from the login page.
Without TASKVIEW_API_URL, click the server settings section on the login page and add the API server URL manually:
http://localhost:1725
Log in with the first account
When the database is created, the migration adds the first account with the password you set in INITIAL_USER_PASSWORD:
- Login:
user - Password: the value of
INITIAL_USER_PASSWORDyou set on themigrationservice indocker-compose.yml
Use these credentials to verify that everything is working - check that the UI loads, you can create a project, add tasks, etc.
::callout{icon="i-lucide-alert-triangle" color="warning"}
INITIAL_USER_PASSWORD is read only once, when the database is created. If it is empty at that moment, no account is created; a value that is shorter than 6 or longer than 128 characters stops the migration with an error. Changing the variable later does not change the password.
::
::callout{icon="i-lucide-alert-triangle" color="error"}
Installed before INITIAL_USER_PASSWORD existed? Older versions created this account with a fixed, publicly known password (user1!#Q). Updating does not change existing accounts. See Check an older installation below.
::
Claim the default account
Make the default account your own — no SMTP or database access needed:
Until you do, the app keeps a reminder on screen with a Change now button that opens Account settings.
- Log in as
userwith yourINITIAL_USER_PASSWORD - Open Account settings — the highlighted Login and email card is shown at the top (it is visible only to the default user)
- Set your own login, email and a strong password, confirm with the current password, and click Save and sign out
- Sign in again with your new login and password
Your organizations, projects and permissions are preserved. Once the email is changed, the card disappears and the claim endpoint is disabled.
::callout{icon="i-lucide-mail" color="info"}
Changing the password later requires a confirmation code sent by email. If your installation has no SMTP, set PASSWORD_CHANGE_CONFIRMATION="password" in .env.taskview so password changes are confirmed with the current password instead. See Environment Variables.
::
Check an older installation for the preinstalled password
Installations created before INITIAL_USER_PASSWORD existed got the account user / test@mail.dest with the fixed password user1!#Q. That password is public, so anyone who can reach the instance can sign in to the account while it is unchanged. Updating TaskView leaves existing accounts as they are, so check once.
Run this in the directory with your docker-compose.yml (adjust the database user and name if yours differ from the examples above). It lists accounts that still have the preinstalled password:
docker compose exec -T db psql -U taskview_db_user -d taskviewdb <<'SQL'
SELECT id, login, email, block FROM tv_auth.users
WHERE password = '$2y$10$q8SLauZ0Syz9aEFdiq0i8.jIlafLj5T0ujXYD7RmRzyNkZ2hR7uhO';
SQL
No rows means there is nothing to do. If a row comes back with block = 0, the account is open:
- You use this account — claim it as described above (or change its password in Account settings). Its projects and permissions are kept.
- You do not use it — disable it:
docker compose exec -T db psql -U taskview_db_user -d taskviewdb <<'SQL'
UPDATE tv_auth.users SET block = 1, confirm_email_code = NULL
WHERE password = '$2y$10$q8SLauZ0Syz9aEFdiq0i8.jIlafLj5T0ujXYD7RmRzyNkZ2hR7uhO';
SQL
A disabled account can no longer sign in, and its open sessions and API tokens stop working. Its data stays in the database.
Updating
To update TaskView to a new version:
docker compose pull
docker compose up -d
The migration container will automatically apply any new database changes on startup.
::callout{icon="i-lucide-paperclip" color="info"}
Installed before the bundled file storage was added? Nothing has to change: a setup with FILE_STORAGE_PROVIDER=local and the ./files volume keeps working. To switch to the bundled S3 storage, add the seaweedfs service and its variables from this guide and move the files as described in Moving files between providers.
::
Production tips
- Use a reverse proxy (Nginx, Caddy, Traefik) to terminate SSL and serve everything over HTTPS
- Update
APP_URLin.env.taskviewandTASKVIEW_API_URLon the webapp service to match your production domains - Trim the login page — set
AUTH_LOGIN_METHODSin.env.taskviewto offer only the sign-in methods you actually use (e.g.AUTH_LOGIN_METHODS="password"). Google/GitHub/Apple buttons are shown only when the provider is configured. - Close the instance — set
ALLOW_PUBLIC_REGISTRATION="false"so strangers can't create accounts: only emails invited to an organization or project (and users coming through your SSO provider) can sign in and get an account on first login. See how it works. - Scale API workers deliberately — the API runs
PM2_INSTANCESworker processes (default2), and each worker opens its own pool of up toDB_POOL_MAXPostgres connections (default20). Before raising either value (or usingPM2_INSTANCES=max), make sureworkers × DB_POOL_MAXstays below your Postgresmax_connections(default100) — otherwise the API fails with "sorry, too many clients already". The API logs a warning on startup when the budget looks too high. - Back up both volumes -
pgdataholds the database andseaweedfs-dataholds the attached files. Back them up together, and never rundocker compose down -von a live installation: it deletes both - Keep the file storage private - the
seaweedfsservice must stay without published ports. To use AWS S3 or another external storage instead, see Using an external S3 - Set
restart: unless-stoppedon all services so they survive server reboots - SMTP setup - add SMTP variables to
.env.taskviewif you want email features (password recovery, invitations). See Configuration for details.
What's next
- Create your first project - set up a project with lists and tasks
- Invite your team - add members and assign roles
- Connect GitHub or GitLab - sync issues as tasks
