Skip to main content
Backtale reads its settings from the environment. Compose, Helm, and the three Terraform packs set the same names. A release image is built with license enforcement on. You cannot turn that off at run time. On a single replica, leave 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

  1. Run backtale db migrate once (a one-off container or the Helm migration job) with the same DATABASE_URL and DIRECT_URL.
  2. Set BACKTALE_SKIP_MIGRATE=true on every app replica. If migrations are behind, the server refuses to start.
  3. Every replica must share one TOKEN_ENCRYPTION_KEY.

Health

After a clean start, open First run.