Self-hosting
Install step by step
Install UserTasks with the one-line installer (Docker, Linux, macOS, Windows), on your laptop, with Docker Compose (Supabase or standalone), on Kubernetes with the Helm chart, from the air-gapped bundle, on your own PostgreSQL, or from source.
On this page
Pick the section for how you're running it and check the requirements first. Each section ends with the app running. Then open it in a browser and create your admin account.
The commands use admin@example.com / Acme Inc as examples.
One-line installer#
The quickest way onto a server, a VM or your own computer: one command, Docker the only thing to install first. No git, Node.js or build.
On Linux or macOS:
curl -fsSL https://usertasks.com/install.sh | shOn Windows, in PowerShell, with Docker Desktop (WSL 2 backend, Linux containers):
irm https://usertasks.com/install.ps1 | iexNeed a native Windows installer (an MSI that runs UserTasks as Windows services, without Docker) for Windows Server? It's available on request: contact support.
The installer:
- Checks the machine (Linux or macOS on amd64 or arm64; memory; disk) and Docker with Compose 2.20 or later. Without Docker it explains how to get it; on Ubuntu, Debian, Fedora, RHEL and similar distributions it offers to install Docker Engine (with your consent, using Docker's own script).
- Downloads a pinned, versioned release from GitHub: the Compose file, a settings template and the
usertaskscommand. It checks the signature ofSHA256SUMSagainst the UserTasks release key built into the installer, then the checksum of the download, before it runs anything from it. - Pulls the published image (
ghcr.io/homepresso/usertasks), pinned by digest to the image the release names. If the image can't be downloaded, it offers to build it locally instead (--build; about 10 GB of memory for Docker). - Asks which services to use: everything in containers (PostgreSQL, MinIO for files, Valkey, Mailpit, the worker: the default), your own PostgreSQL, a Supabase project, or custom (database, files and email one by one). Sign-in starts with built-in accounts; add SSO later in Settings → Infrastructure.
- Writes
.envwith fresh secrets (readable only by you), starts the containers, applies the migrations and waits until UserTasks answers. - Prints the address and the setup code, and opens your browser when it can. Create your admin account with it.
It's safe to run again: an existing install keeps its .env, secrets and data, and only starts what isn't running.
| Option | Environment variable | Default |
|---|---|---|
--version 0.2.0 | USERTASKS_VERSION | the latest release |
--dir /opt/usertasks | USERTASKS_DIR | /opt/usertasks as root, else ~/usertasks (Windows: %USERPROFILE%\usertasks) |
--port 8080 | USERTASKS_PORT | 3000 (asks for another when it's taken) |
--url https://tasks.example.com | USERTASKS_APP_URL | http://localhost:<port> |
--preset standalone, postgres, supabase or custom | USERTASKS_PRESET | asks; standalone without questions |
--project usertasks | USERTASKS_PROJECT | usertasks (the Docker Compose project: container and volume names) |
--non-interactive | USERTASKS_NONINTERACTIVE=1 | asks questions when there's a terminal |
--build | builds the image locally if it can't be pulled | |
--install-docker | Linux: installs Docker Engine without asking | |
--no-browser | USERTASKS_NO_BROWSER=1 | opens the browser when it can |
--edition enterprise | USERTASKS_EDITION | the public image; with --licence (or enterprise) UserTasks Enterprise, one image with every paid extension, each unlocked by its licence; core the public image even with a licence; sharepoint the older SharePoint edition name |
--licence usertasks.licence | USERTASKS_LICENCE_FILE | needed with --edition: your trial or purchased licence, checked with usertasks.com and installed for you |
--bundle <file> | installs from an offline bundle (air-gapped): its .tar, or its parts (the folder holding them, or the .parts.json) | |
--bundle-download | makes an offline bundle here instead of installing (with --edition, --licence, optional --platform, --out); with --from <address of a .parts.json>, downloads a prebuilt bundle's parts instead (it resumes after a broken connection and checks every part; bundles in parts) |
Pass options after sh -s --. In PowerShell they're parameters (-Version, -Dir, -Port, -Url, -Preset, -Project, -NonInteractive, -Build, -NoBrowser, -Edition, -Licence, -Bundle, -BundleDownload, -From, -Platform, -Out):
curl -fsSL https://usertasks.com/install.sh | sh -s -- --port 8080 --url https://tasks.example.com --non-interactive& ([scriptblock]::Create((irm https://usertasks.com/install.ps1))) -Port 8080 -NonInteractivePrefer to read it first? Download https://usertasks.com/install.sh, read it, then run it with sh install.sh. The script is one function that only runs once it has fully downloaded, so a broken connection does nothing.
The usertasks command#
The installer puts a usertasks command on the server (in /usr/local/bin as root, else ~/.local/bin; on Windows the install folder's bin is added to your PATH):
| Command | What it does |
|---|---|
usertasks status | Version, image, containers and their health, whether setup is done, pending migrations |
usertasks logs -f app | Container logs (docker compose logs options) |
usertasks backup | Database dump, files (the MinIO volume) and .env in backups/<time>-<version>/ |
usertasks restore <backup or latest> | Puts a backup back (database, files, .env), after taking a fresh backup |
usertasks upgrade | Backup, verified download, migrations, switch, health check, automatic code rollback: Upgrade to a new release |
usertasks config | Asks the service choices again; keeps the secrets |
usertasks setup-code | A new setup code for /setup (until the first account exists) |
usertasks admin <command> | usertasks-admin inside the app container (doctor, db status, switch, …) |
usertasks start, stop, restart | Start, stop or restart the containers |
usertasks uninstall | Removes the containers and keeps the data; --purge also deletes the volumes and the folder, after you type the project name |
If the UserTasks CLI is installed too, any other command (usertasks login, usertasks config export, …) is passed to it. If a usertasks command was already on your PATH, the installer leaves it alone and names this one usertasks-server.
The install folder holds .env (the secrets: keep a copy, especially ENCRYPTION_KEY), state.env (the version and image), releases/ (the verified releases), backups/ and bin/. The data lives in Docker volumes named after the project (usertasks_pgdata, usertasks_miniodata). Before real people use it, point SMTP_HOST at your mail relay and put HTTPS in front: see Give your install a friendly address.
Laptop trial#
Everything runs in Docker on your machine: PostgreSQL, MinIO for files, Valkey, Mailpit for email, the worker and the app. No Supabase account is needed.
git clone https://github.com/homepresso/User-Tasks.git usertasks && cd usertasks
npm install
npm run stack -- upnpm run stack -- up does four things:
- Writes
.envfromdeploy/compose/standalone.env.example, with fresh secrets. - Gets the app image: it uses the published image for this version (
ghcr.io/homepresso/usertasks:<version>) when available, otherwise it builds the image locally, which needs about 10 GB of memory for Docker and 10 to 20 minutes the first time (Requirements). - Starts the containers and waits until they're healthy. Migrations run on every start.
- Prints the address.
Then:
- Open http://localhost:3000. You're sent to
/setup. - Get the setup code from the app's log:
docker compose logs app | grep "setup code"Emails (invitations, password resets) land in Mailpit at http://localhost:8025.
| To | Run |
|---|---|
| Use another port, the first time (3000 is taken) | npm run stack -- up --port 3001 |
| Stop it and keep the data | npm run stack -- down |
| Stop it and delete the data | npm run stack -- down --volumes |
Create the admin account from the command line instead of /setup | npm run stack -- up --email admin@example.com --org "Acme Inc" (prints a generated password once) |
| Build the image from your copy of the code instead of downloading it (after changing the code, say) | npm run stack -- up --build |
| Run a particular image (your registry's copy, or one you built) | USERTASKS_IMAGE=registry.example.com/usertasks:0.1.0 npm run stack -- up |
The published image is built without a fixed app address and in self-hosted mode; the server reads APP_URL when it starts. If you need the few pages generated at build time (robots.txt, the sitemap) to carry your own address, build locally with --build.
Docker Compose#
docker-compose.yml has two profiles. The profile decides which containers start. .env decides which services the app uses. The app's Compose service is called app. See Deployment profiles for every option.
With a Supabase project (default)#
Only the app runs in Docker. The database, sign-in, files and live updates are in your Supabase project, hosted or self-hosted.
- Apply the database migrations to your project:
git clone https://github.com/homepresso/User-Tasks.git usertasks && cd usertasks
npx supabase link --project-ref <your-project-ref>
npx supabase db push --linked- Copy
.env.exampleto.envand fill it in. You need at least:NEXT_PUBLIC_SUPABASE_URLandNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYNEXT_PUBLIC_APP_URL, the address people will openCRON_SECRETandENCRYPTION_KEY(openssl rand -hex 32makes a good value) Every variable is described in Environment variables.
- Build and start the app, then read the setup code from its log:
docker compose up -d --build
docker compose logs app | grep "setup code"- Turn on background work (schedules, the run queue, reminders) by adding the two Vault secrets in Scheduled jobs.
Everything in containers (standalone)#
No Supabase. PostgreSQL 16, MinIO, Valkey, Mailpit, the worker and the app all run in Docker. It's the laptop trial, set up for a server:
git clone https://github.com/homepresso/User-Tasks.git usertasks && cd usertasks
cp deploy/compose/standalone.env.example .env
docker compose --profile standalone up -d --build --wait
docker compose logs app | grep "setup code"Before the up, edit .env: replace every <generate> with a secret (openssl rand -hex 32) and set APP_URL and NEXT_PUBLIC_APP_URL to the address people will open. Building the image needs about 10 GB of memory for Docker (Requirements).
If Node.js is on the server, npm install && npm run stack -- init writes .env with the secrets filled in. Edit the addresses, then run npm run stack -- up.
Before real people use it:
- Point
SMTP_HOSTat your mail relay; Mailpit only catches mail. - Put an HTTPS reverse proxy in front of port 3000: see Give your install a friendly address.
On-premises setup covers a private CA, Keycloak and PgBouncer.
Kubernetes (Helm)#
The chart in deploy/helm/usertasks deploys the web app (two replicas by default), the worker, and database migrations on every install and upgrade. Kubernetes setup explains every value.
- Build the image and push it to a registry your cluster can pull from:
docker build -t registry.example.com/usertasks:0.1.0 .
docker push registry.example.com/usertasks:0.1.0- Start your values file from an example in
deploy/helm/usertasks/examples/:eval.yamlbundles PostgreSQL, MinIO, Valkey and Mailpit, for a first look.onprem.yaml,eks.yaml,aks.yamlandgke.yamluse your own services. SetappUrl,image.repositoryandimage.tag.
- Create the Secret with your keys (add
DATABASE_URLand the other passwords for your services as more--from-literalvalues), then install:
kubectl create namespace usertasks
kubectl -n usertasks create secret generic usertasks-env \
--from-literal=ENCRYPTION_KEY=$(openssl rand -hex 32) \
--from-literal=CRON_SECRET=$(openssl rand -hex 32)
helm install usertasks deploy/helm/usertasks -n usertasks -f my-values.yaml --wait --wait-for-jobs --timeout 15m- Open
appUrlthrough your Ingress or Gateway. Without one:
kubectl -n usertasks port-forward svc/usertasks 3000:80The chart names the app's Deployment after the release. With the release called usertasks, it's deploy/usertasks. With any other release name, it's deploy/<release>-usertasks. Create your admin account shows how to get the setup code when there are several replicas.
Air-gapped bundle#
For a network with no internet access. On a connected machine, build a signed bundle. Carry it across, verify it, and run it with Docker Compose or Kubernetes. Air-gapped installs has every option.
On the connected machine:
docker build --build-arg TYPECHECK=true -t usertasks:0.1.0 .
npm ci
npm run bundle -- create --image usertasks:0.1.0 --signing-key ~/keys/usertasks-bundle.pemOn the offline host (the last command prints a setup code for /setup):
tar -xf usertasks-bundle-0.1.0-linux-amd64.tar && cd usertasks-bundle-0.1.0-linux-amd64
./bundle.sh verify --fingerprint <the signer fingerprint>
./bundle.sh load
./bundle.sh up
./bundle.sh admin setup-code./bundle.sh up starts the on-premises profile on a Docker network with no route out. It doesn't publish anything on the host: put your reverse proxy on that network to reach the app.
For Kubernetes, push the images to your registry with ./bundle.sh load --registry registry.corp.example/usertasks --push, then helm install the chart from charts/.
The CLI and SDK are in npm/, ready for offline install (see Use the CLI with your server).
Your own PostgreSQL, without Supabase#
Use PostgreSQL 15 or later, with the pg_trgm extension. The easiest way is the standalone profile: point DATABASE_URL, MIGRATION_DATABASE_URL, REALTIME_DATABASE_URL and SCHEDULER_DATABASE_URL in .env at your server. The bundled postgres container then simply sits unused. On Kubernetes, use the chart's onprem.yaml example.
To run the app straight from a source checkout instead, set the providers in .env.local:
DEPLOYMENT_MODE=self_hosted
APP_URL=https://tasks.example.com
NEXT_PUBLIC_APP_URL=https://tasks.example.com
ENCRYPTION_KEY=<openssl rand -hex 32>
CRON_SECRET=<openssl rand -hex 32>
DB_PROVIDER=postgres
DATABASE_URL=postgresql://usertasks:<password>@db.example.com:5432/usertasks
AUTH_PROVIDER=builtin
REALTIME_PROVIDER=sse
STORAGE_PROVIDER=local
STORAGE_LOCAL_ROOT=/var/lib/usertasks/storage
SCHEDULER_PROVIDER=worker
CACHE_PROVIDER=postgres
EMAIL_PROVIDER=smtp
SMTP_HOST=mail.example.com
SMTP_PORT=587
EMAIL_FROM="UserTasks <tasks@example.com>"Then apply the migrations, create the storage buckets, build and start. db migrate and storage init don't read .env.local, so they need DATABASE_URL (and the storage variables) set in the shell. The first line does that in bash or zsh; in PowerShell, set them with $env:DATABASE_URL='postgresql://…' instead.
set -a; . ./.env.local; set +a
npm ci
npm run admin -- db migrate
npm run admin -- storage init
npm run build
npm startThe setup code is printed in the terminal running npm start. If you put PgBouncer in transaction mode in front of the database, keep migrations, live updates and the worker on a direct connection: see Database.
From source with Supabase#
The quickest way to work on UserTasks itself, with a local Supabase in Docker. New to the terminal? Quick start on your computer walks through it step by step.
git clone https://github.com/homepresso/User-Tasks.git usertasks && cd usertasks
npm run setup:local
npm run devFor a production build, run npm run build && npm start instead of npm run dev.
npm run setup:local works the same in PowerShell, cmd, bash and zsh, and is safe to run again. It checks Node.js and Docker, runs npm install if needed, starts the local Supabase (supabase/config.toml is in the repository, so there's no supabase init), applies any migrations the database doesn't have yet (data is kept; only --reset wipes it, after asking), writes .env.local from .env.example with the local URL and keys and fresh ENCRYPTION_KEY and CRON_SECRET values (never overwriting values already there), and stores the cron secret and http://host.docker.internal:3000 in the local Vault so schedules and queued runs work.
The setup code is printed in the terminal running npm run dev.
By hand#
npm install
npx supabase start
npx supabase status -o env
cp .env.example .env.localnpx supabase start applies supabase/migrations to a new local database, and npx supabase status -o env prints API_URL, ANON_KEY and SERVICE_ROLE_KEY. In Windows cmd, the last line is copy .env.example .env.local. In .env.local, set NEXT_PUBLIC_SUPABASE_URL (API_URL), NEXT_PUBLIC_SUPABASE_ANON_KEY (ANON_KEY) and SUPABASE_SERVICE_ROLE_KEY (SERVICE_ROLE_KEY), then ENCRYPTION_KEY (openssl rand -base64 32) and CRON_SECRET (openssl rand -hex 32). Run npm run dev. Quickstart: self-host covers the background-job secrets.
Next#
Open the app and create your admin account. When it runs on a server, give it a friendly address such as https://tasks.yourcompany.com. Started from source with a local Supabase? Move to Supabase Cloud.