The compose file lives at docs/operations/docker-compose.yaml.
By default the stack pulls:
ghcr.io/zitadel/nextgen:latest
Override the tag in .env (NEXTGEN_IMAGE) when pinning a release or CI snapshot.
If the image is not published yet, build locally — see CONTRIBUTING.md.
| Service | Role |
|---|---|
postgres |
PostgreSQL 18 with database nextgen |
nextgen |
API + embedded /ui/console/ |
Copy env.example to .env in the same directory as the compose file.
The template exposes:
NEXTGEN_IMAGE— server image tag, defaulting toghcr.io/zitadel/nextgen:latestNEXTGEN_PORT— local HTTP port, defaulting to8080NEXTGEN_PLATFORM_BOOTSTRAP_PROJECT/NEXTGEN_SERVER_PUBLIC_BASE: optional, enables claiming projects on this deployment; unlikezitadel start, compose does not set these for you. See Configuration → Platform
The compose file sets NEXTGEN_DATABASE_POSTGRES for the bundled Postgres
container and persists server data under the nextgen-server-data volume. When
no master keys are configured, the server generates and reuses an RSA master
key under master-keys/ in that mounted data directory. Losing that volume
makes every encrypted value unrecoverable; see
Encryption keys (master key / project KEK).
To load demo users on startup, uncomment the user-file volume and command override in the compose file, or run:
docker compose run --rm nextgen server \
--migrate \
--user-file /bootstrap/demo-admin.jsonSee examples/bootstrap-users/.
docker compose logs -f nextgen
docker compose down
docker compose down -v # also remove Postgres and server data volumes