--no-build, Compose builds the local folder and ignores the digest you checked.
The shipped database image is pgvector/pgvector:pg17. The app listens on port 3000 and, with the default Compose file, is published on 127.0.0.1 only.
Generate the env file
From a copy of the product repository (thescripts/install/generate.mjs that ships with the release):
.env and does not overwrite a file that already exists. It sets:
POSTGRES_PASSWORDandAUTH_SETUP_TOKEN(64 hex characters each)TOKEN_ENCRYPTION_KEY(base64 of 32 random bytes)APP_BASE_URLfrom--base-urlAUTH_TRUSTED_PROXY_HOPSfrom--proxy-hops(use1behind one TLS proxy)AUTH_MODE=profileandAUTH_PROFILE=local
TOKEN_ENCRYPTION_KEY outside the machine. A database dump cannot recover encrypted AI and tracker secrets without it.
You can fill the same values by hand from .env.example. POSTGRES_PASSWORD is openssl rand -hex 32. TOKEN_ENCRYPTION_KEY is openssl rand -base64 32. AUTH_SETUP_TOKEN is at least 32 characters (openssl rand -hex 32). The stack refuses to start without POSTGRES_PASSWORD.
Start the verified image
1
Pin the digest
Put this in
.env, or export it for one command:2
Start without a build
BACKTALE_SKIP_MIGRATE unset. On one replica the entrypoint runs prisma migrate deploy before the app serves. Logs should not show boot_refused. Check http://127.0.0.1:3000/api/health on the machine, then put TLS in front before anyone else uses it.3
Put TLS in front
Keep port 3000 off the public internet. Use your own reverse proxy, or the optional overlay:Set
APP_BASE_URL to the public https:// address with no trailing slash. Set AUTH_TRUSTED_PROXY_HOPS to the number of proxies between the browser and the app. The proxy must send X-Forwarded-Proto and X-Forwarded-For./setup. See First run.
Commands you will use
docker compose config prints secrets. Do not paste that output into a ticket.
More than one replica
Run migrations once, then skip them on the long-running replicas:BACKTALE_SKIP_MIGRATE=true on every app replica. Every replica must use the same TOKEN_ENCRYPTION_KEY. The server refuses to start while migrations are behind.