Skip to content

Install ​

Self-hosted

Installing Truetask is three commands: clone the release repository, run the setup wizard, start the stack. The wizard writes your .env and can start the containers for you.

You need Docker Engine 25 or newer and Docker Compose v2 on the host, and outbound HTTPS to git.truetask.dev, the public registry the images are pulled from. No account and no registry login are needed. Installing is free, but the instance needs a paid, one-time license to stay active past its 3-day grace period. OpenSSL is optional but recommended: the wizard uses it to generate your push-notification keys and your settings encryption key.

1. Get the release repository ​

bash
git clone https://git.truetask.dev/truetask/truetask-releases.git
cd truetask-releases

The repository is deliberately thin: docker-compose.yml, the setup wizard, the Caddy entrypoint, the management scripts and a VERSION file. There is no application source and nothing is built on your host, because docker compose up -d pulls pre-built images.

Clone it rather than downloading a zip. Updating is a git pull in this directory, and the new checkout is what pins the new image tag.

2. Run the setup wizard ​

bash
./build_env.sh

The wizard checks for Docker, Docker Compose and OpenSSL, warns when the Docker Engine is older than 25, then walks you through four sections. If it finds an existing .env, either next to the script, at the path recorded in .truetask-data-path, or in the default ../data directory, it offers to load those values as defaults so you can re-run it to reconfigure an instance.

Basic configuration ​

Data directory. Default ../data, relative to the repository. It must be outside the application directory so your data survives updates. The wizard resolves it to an absolute path, prints that path back, and refuses to continue until it can write there. It then creates pb_data and mcp_config inside it; plugins and logs appear beside them when the stack first starts. If you run the wizard with sudo, it also runs chown -R 1000:1000 on the directory, because PocketBase runs as UID 1000 inside its container. A directory that already contains pb_data is recognized as an existing install; a directory with unrelated files raises a warning and asks you to confirm. You also get a warning if the filesystem has less than 1 GB free.

Workspace name. Default truetask-prod. Lowercase letters, numbers, hyphens and underscores only, starting with a letter or a number. This becomes the Docker Compose project name and the container name prefix, so a second instance on the same host needs a different one. The wizard warns you if a compose project with that name is already running.

Public URL. Default https://your-domain.com. The wizard strips any protocol you type and adds one back: http:// for localhost and 127.0.0.1, https:// for everything else. A trailing slash is removed. If the result is exactly http://localhost and your proxy port is not 80, the port is appended. This URL is what PocketBase puts in email links and OAuth redirects, so it has to be the address people actually use.

Proxy port. Default 80. This is the host port published by the Caddy container. The wizard warns if something is already listening there.

Admin email and Admin password. The email defaults to [email protected] and must look like an address. The password must be at least 10 characters and contain an uppercase letter, a lowercase letter and a digit, and you type it twice. This is the PocketBase superuser and your first sign-in to the app.

Email (SMTP) ​

Optional. Answer no and configure mail later in the app instead; see SMTP.

If you answer yes, the wizard asks for the host, the port (default 587), the username, the password, a sender name (default Truetask) and a sender address (default noreply@ plus the domain from your public URL).

Push notifications ​

Web push needs a VAPID key pair. With OpenSSL present the wizard offers to generate one and defaults to yes. It creates a prime256v1 key, derives the URL-safe base64 public key from it, and asks for a claim email (default mailto:admin@ plus your domain).

Keys are permanent

Once the instance has a database, the wizard locks the existing VAPID keys and will not regenerate them. Replacing them would break every push subscription your users have already made.

Without OpenSSL this section is skipped and web push stays off.

Security ​

Settings encryption. Recommended, and the default is yes on a fresh install. The wizard generates a 32-character hex key and writes it to PB_ENCRYPTION_KEY. PocketBase then starts with --encryptionEnv=PB_ENCRYPTION_KEY and encrypts the sensitive settings it stores in the database, such as your SMTP password, OAuth2 client secrets and S3 keys.

The encryption key cannot change

Change or lose this key after the first start and the encrypted settings become unreadable. Store it with your other secrets. If a database already exists, the wizard preserves the key it finds and will not let you switch encryption on or off.

API rate limiting. Recommended, default yes. Writes POCKETBASE_RATE_LIMIT_ENABLED=true, which turns on PocketBase's rate limiter at boot.

Summary and start ​

The wizard prints the data directory, workspace, public URL, port, admin email, and whether encryption, email, push and rate limiting are on. Then it writes .env, copies it to <data directory>/.env as a backup, and records the data directory path in .truetask-data-path.

Finally it offers to start the server. Answer yes and it runs docker compose up -d, waits, and reports the state of all five services.

3. Start the stack and sign in ​

If you skipped the last prompt:

bash
docker compose up -d

Open your public URL, sign in with the admin email and password from the wizard, and activate your license within three days.

Truetask self-hosted license activation page

The key arrives by email. Paste it on this page, or later in Settings > Site > License. No restart is needed. See License for what happens during and after the grace period.

The .env reference ​

These are the variables the wizard writes.

VariableDefaultWhat it does
DATA_DIR../dataWhere pb_data, plugins, logs and mcp_config live on the host
WORKSPACEtruetask-prodCompose project name and container name prefix
PUBLIC_URLThe address people use. Email links and OAuth redirects are built from it
PROXY_PORT80Host port published by the Caddy container
PB_ENCRYPTION_KEYgeneratedEncrypts sensitive settings at rest. Empty disables encryption
POCKETBASE_ADMIN_USERNAMESuperuser email, re-synced into the database at every start
POCKETBASE_ADMIN_PASSWORDSuperuser password, re-synced at every start
POCKETBASE_SMTP_HOSTemptyMail server. When set, the SMTP block below is applied at every start
POCKETBASE_SMTP_PORT587
POCKETBASE_SMTP_USERNAMEempty
POCKETBASE_SMTP_PASSWORDempty
POCKETBASE_SMTP_SENDER_NAMETruetask
POCKETBASE_SMTP_SENDER_ADDRESSempty
POCKETBASE_RATE_LIMIT_ENABLEDtrueTurns on PocketBase's rate limiter
VAPID_PRIVATE_KEYgeneratedWeb push private key, PEM with escaped newlines
VAPID_PUBLIC_KEYgeneratedWeb push public key
VAPID_CLAIM_EMAILmailto:admin@<domain>Web push contact address
IBM_TELEMETRY_DISABLEDtrueOpts a third-party build-time tool out. Truetask itself sends nothing
SITE_MODEHOSTEDRuntime mode. Leave it on HOSTED

The compose file reads a few more that the wizard does not write. Add them by hand when you need them.

VariableDefaultWhat it does
TRUETASK_VERSIONthe tag of your checkoutImage tag to pull. Normally leave it alone and let git pull move it
TRUETASK_REGISTRYgit.truetask.dev/truetaskRegistry the images come from
POCKETBASE_ADMIN_ENABLEDfalseExposes the PocketBase admin dashboard at /_/. Keep it off in production
UNSPLASH_APP_ID, UNSPLASH_ACESS_KEY, UNSPLASH_SECRET_KEYemptyYour own Unsplash keys, for covers, form header photos and photos inserted into notes and descriptions. Also needs the Network opt-in. See Integrations
FORMS_UPLOAD_ALLOWED_EXTENSIONSemptyComma-separated extensions, no dots, for anonymous form uploads
FORMS_MAX_FILES_PER_SUBMISSION10
FORMS_TOKEN_SECRETemptySigns the password gate cookie on protected public forms. Falls back to the admin password
NOTES_TOKEN_SECRETemptySigns the password cookie of a password-protected published note. Falls back to FORMS_TOKEN_SECRET, then the admin password
CLIENT_LINK_SECRETemptySigns the one-click links a client answers a request from by email. Falls back to the admin password. Changing it ends every link already in somebody's inbox
CLIENT_UPLOAD_MAX_MB500The largest file, in MB, a signed-in client may send from their client page. 500 is also the most the file store keeps, so a larger number changes nothing
GIT_OAUTH_ENCRYPTION_KEYemptyEncrypts the secrets stored for outside services: git connections, Slack, Stripe, Twilio, WhatsApp and plugin settings. Empty derives the key from the admin password. See Security
OPENAI_APPS_CHALLENGE_TOKENemptyThe token OpenAI's apps directory gives you to prove you own the hostname when you submit the workspace's MCP connector. Served as plain text at /.well-known/openai-apps-challenge
PLUGIN_CATALOG_URLTruetask's own catalogWhere the plugin catalog is read from. Point it at a mirror to offer another set of plugins
PLUGIN_ALLOW_UNSIGNEDofftrue lets the workspace owner install a plugin archive nobody signed, for building a plugin on your own server
HELPER_RELEASE_MANIFESTTruetask's own release listWhere the Truetask Helper releases your computers are offered come from: a URL, a file, or off for no updates and no download list

Keep the backup

The wizard copies .env into your data directory. After an update that replaces the application directory, copy it back with cp <data directory>/.env .env.

Reverse proxy and TLS ​

The Caddy container is the only one with a published port. It listens on port 80 inside the container with auto_https off, so it does not terminate TLS. Put your own TLS terminator in front of it: another Caddy, nginx, Traefik, a load balancer or a tunnel, pointed at <host>:<PROXY_PORT>.

Inside, Caddy routes by path:

PathGoes to
/v1/*FastAPI
/agent-setup.mdFastAPI, rewritten to /v1/agent-setup.md
/.well-known/agent-skills/*FastAPI, the workspace's public agent skills
/.well-known/oauth-authorization-server, /.well-known/oauth-protected-resourceThe MCP server, for an AI tool's browser sign-in
/.well-known/openai-apps-challengeThe MCP server. Serves OPENAI_APPS_CHALLENGE_TOKEN when it is set, otherwise answers 404
/mcp and /mcp/*The MCP server
/yjs and /yjs/*The collaboration server
/api/realtimePocketBase, with response buffering disabled
/api/*PocketBase
/_/*PocketBase when POCKETBASE_ADMIN_ENABLED=true, otherwise a 404
everything elsePocketBase, which serves the web app

Two things your own proxy must respect. /api/realtime is a server-sent event stream, so it must not be buffered, and Truetask's internal Caddy already sets Cache-Control: no-cache, no-transform and X-Accel-Buffering: no on it for proxies that honor those. /yjs is a WebSocket, so upgrades must pass through. Without either, the app looks alive but changes only appear after a refresh.

When a service behind Caddy is restarting or too slow to answer, Caddy answers 503 with a short JSON reason and a Retry-After of 5 seconds, never a bare 502 or 504.

A client domain is also your proxy's job. Truetask proves the domain belongs to the firm and answers GET /v1/client-domains/tls-allowed?domain=<host> for the hosts it may serve; your proxy obtains the certificate and sends the whole host, every path, to the stack. Caddy's on-demand TLS can use that endpoint as its ask check.

PUBLIC_URL has to be the address people really reach: client pages compare the host a request arrives on against it.

The management scripts ​

scripts/management/ holds five helpers. Run them from anywhere; they find the compose file two levels up.

ScriptWhat it does
truetask-start.shdocker compose up -d, then prints your access URL
truetask-stop.shdocker compose down. With --remove it also drops images and volumes, after a confirmation. Your data directory is untouched either way
truetask-status.shVersion, git checkout, container states, a health probe, data directory size, backup count and free disk
truetask-update.shPulls the repository, pulls the images, recreates the containers. See Updates
truetask-backup.shcreate triggers a backup, list lists them. See Backups

When it goes wrong ​

SymptomWhat to do
Port already in useThe wizard warns at the prompt and Docker fails at up. Re-run ./build_env.sh, choose a free PROXY_PORT, and point your outer proxy at it
Cannot write to the data directoryThe wizard refuses the path and asks again. Pick a directory you own, or create it and give yourself write access. If you install as root, remember the containers write as UID 1000
You lost your .envCopy the backup out of your data directory with cp <data directory>/.env .env. The wizard also left a .truetask-data-path file next to itself holding the absolute path
PocketBase will not start after an updateThe container runs pocketbase migrate up before serving and refuses to start if a migration fails, so it never serves traffic against an inconsistent schema. Back up pb_data and read the log for the failing migration

When a service will not come up, the wizard names it. Read the logs, and run the stack in the foreground to watch a boot end to end:

bash
docker compose logs
docker compose up

A pull failure is almost always the network. The host has to reach git.truetask.dev over HTTPS, so retry with docker compose pull and read its error.

Frequently asked questions ​

Do I need an account to install self-hosted Truetask? ​

No. Cloning the release repository and pulling the images from git.truetask.dev need no account and no registry login. The license key you activate within three days is what you buy; see How Truetask is licensed.

Does the Truetask installer set up HTTPS? ​

No. The bundled Caddy container listens on plain HTTP and does not terminate TLS, so put your own proxy, load balancer or tunnel in front of it. See Reverse proxy and TLS.

Can I try self-hosted Truetask before buying a license? ​

Yes. A new instance runs for a 3-day grace period without a key, with a banner counting the days down, and every page then redirects to the activation screen until a key is accepted. See License.

What does a self-hosted Truetask instance send out after it is installed? ​

No telemetry and no update check. Features that read the web stay off until an admin turns them on, and the one read Truetask makes on its own is the Truetask Helper release list. See What leaves a self-hosted instance.

Truetask works the same on Truetask Cloud and on your own server. Pages and sections that apply to one model only are labelled. For AI assistants: llms.txt.