mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-02 08:58:52 +00:00
feat: add DSN/URL connection string support for PostgreSQL and Redis (#11729)
This commit is contained in:
@@ -51,16 +51,12 @@ zitadel start-from-init \
|
||||
|
||||
### Configure by Environment Variables
|
||||
|
||||
The environment variable approach uses a single DSN string instead of the individual field-based configuration shown above.
|
||||
|
||||
```bash
|
||||
# Set runtime environment variables
|
||||
export ZITADEL_DATABASE_POSTGRES_HOST=my.database
|
||||
export ZITADEL_DATABASE_POSTGRES_PORT=5432
|
||||
export ZITADEL_DATABASE_POSTGRES_DATABASE=zitadel
|
||||
export ZITADEL_DATABASE_POSTGRES_USER_USERNAME=my_zitadel_db_user
|
||||
export ZITADEL_DATABASE_POSTGRES_USER_PASSWORD=Secret_DB_User_Password
|
||||
export ZITADEL_DATABASE_POSTGRES_USER_SSL_MODE=disable
|
||||
export ZITADEL_DATABASE_POSTGRES_ADMIN_USERNAME=root
|
||||
export ZITADEL_DATABASE_POSTGRES_ADMIN_SSL_MODE=disable
|
||||
# Set the PostgreSQL connection via a single DSN
|
||||
# Use the "postgres" maintenance database so ZITADEL can create its own database during initialization
|
||||
export ZITADEL_DATABASE_POSTGRES_DSN=postgresql://my_zitadel_db_user:[email protected]:5432/postgres?sslmode=disable
|
||||
export ZITADEL_FIRSTINSTANCE_ORG_HUMAN_USERNAME="root"
|
||||
export ZITADEL_FIRSTINSTANCE_ORG_HUMAN_PASSWORD="RootPassword1!"
|
||||
|
||||
|
||||
@@ -93,22 +93,18 @@ There are three ways to pass the masterkey to the `zitadel` binary:
|
||||
|
||||
<Tabs
|
||||
groupId="installation-target"
|
||||
default="linuxunix"
|
||||
values={[
|
||||
{ label: "Linux and Unix", value: "linuxunix" },
|
||||
{ label: "Docker Compose", value: "compose" },
|
||||
{ label: "Kubernetes (Helm)", value: "k8s" },
|
||||
]}
|
||||
defaultIndex={1}
|
||||
items={['Linux and Unix','Docker Compose', 'Kubernetes (Helm)']}
|
||||
>
|
||||
<Tab value="linuxunix">
|
||||
<Tab value="Linux and Unix">
|
||||
<LinuxUnix components={props.components} />
|
||||
<Login components={props.components} />
|
||||
</Tab>
|
||||
<Tab value="compose">
|
||||
<Tab value="Docker Compose">
|
||||
<Compose components={props.components} />
|
||||
<Login components={props.components} />
|
||||
</Tab>
|
||||
<Tab value="k8s">
|
||||
<Tab value="Kubernetes (Helm)">
|
||||
<Helm components={props.components} />
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
Reference in New Issue
Block a user