Authentication
NEXT_PUBLIC_AUTH_PROVIDER
NEXT_PUBLIC_AUTH_PROVIDER chooses who can sign in. Any other value stops the server at boot.
Local email and password
This is the default. Leave the variable unset, or set it to local. The first start generates an admin password and prints it in docker logs. To choose the accounts yourself:
-e NEXT_PUBLIC_AUTH_PROVIDER=local \-e ADMIN_EMAIL=admin@example.com \-e ADMIN_PASSWORD='a long password' \-e JWT_SECRET="$(openssl rand -base64 32)" \-e AUTH_BOOTSTRAP=offJWT_SECRET must be at least 32 characters. AUTH_BOOTSTRAP=off means a missing admin password or secret stops the server instead of generating one. A second account exists only when USER_PASSWORD is set. That account can run queries and does not get the admin tools.
With SQLite or PostgreSQL storage, the first start copies those accounts into the server. Later sign-ins use that table. Add or remove people under Admin, then Accounts. ADMIN_PASSWORD_RESET=true puts the admin password from the environment back in force on the next start. Remove that variable after the admin is back in.
An authenticator app is optional on local accounts. Set ADMIN_TOTP_SECRET to a base32 secret of at least 26 characters (openssl rand 20 | base32 | tr -d '='). That account then needs the 6-digit code after the password.
Single sign-on (OIDC)
Use an OpenID Connect provider such as Auth0, Keycloak, Okta, Microsoft Entra ID, or Zitadel:
-e NEXT_PUBLIC_AUTH_PROVIDER=oidc \-e OIDC_ISSUER=https://your-tenant.example.com \-e OIDC_CLIENT_ID=your_client_id \-e OIDC_CLIENT_SECRET=your_client_secret \-e JWT_SECRET="$(openssl rand -base64 32)"In the identity provider, allow the callback https://<your-host>/api/auth/oidc/callback, the logout URL https://<your-host>/login, and the web origin https://<your-host>. The login page then offers Login with SSO.
OIDC_ROLE_CLAIM names the claim that carries roles, such as realm_access.roles on Keycloak. OIDC_ADMIN_ROLES defaults to admin. Anyone else signs in as a regular user unless OIDC_USER_ROLES lists the only other roles you accept. OIDC_ALLOWED_EMAIL_DOMAINS=example.com admits only those email domains.
OpenShift
The third value, openshift, signs people in through an OpenShift cluster's own OAuth server. A virtual machine on DigitalOcean, AWS, Azure, or Google Cloud uses local or oidc.