BACKTALE_SKIP_MIGRATE unset. The container entrypoint runs database migrations (prisma migrate deploy) before the server listens. Use one replica for the first install so that step is the only writer. Add replicas only after migrations have been applied once.
Required at first boot
Compose builds
DATABASE_URL from POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB unless you point at an external database. The bundled database image is Postgres 17 with pgvector. Create the extension on Azure, AWS, and Google Cloud yourself (CREATE EXTENSION IF NOT EXISTS vector;). The Azure pack allow-lists azure.extensions=VECTOR for you.
License and EULA
Do not set these on a customer install
Never put a cosign private key or a license signing key in the app environment.
More than one replica
- Run
backtale db migrateonce (a one-off container or the Helm migration job) with the sameDATABASE_URLandDIRECT_URL. - Set
BACKTALE_SKIP_MIGRATE=trueon every app replica. If migrations are behind, the server refuses to start. - Every replica must share one
TOKEN_ENCRYPTION_KEY.
Health
After a clean start, open First run.