mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-29 10:32:15 +00:00
feat: add DSN/URL connection string support for PostgreSQL and Redis (#11729)
This commit is contained in:
@@ -53,8 +53,14 @@ [email protected]
|
||||
POSTGRES_DB=zitadel
|
||||
POSTGRES_ADMIN_USER=postgres
|
||||
POSTGRES_ADMIN_PASSWORD=postgres
|
||||
POSTGRES_ZITADEL_USER=zitadel
|
||||
POSTGRES_ZITADEL_PASSWORD=zitadel
|
||||
# DSN used by ZITADEL to connect to PostgreSQL.
|
||||
# The start-from-init command uses this DSN to create the database schema and for
|
||||
# normal operation. When a DSN is configured, ZITADEL does not create or switch
|
||||
# to a separate unprivileged database user; the user in this DSN is used directly
|
||||
# and must already exist. For production, configure this DSN to use a non-superuser
|
||||
# role with only the permissions ZITADEL needs.
|
||||
# See https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
||||
ZITADEL_DATABASE_POSTGRES_DSN=postgresql://postgres:postgres@postgres:5432/zitadel?sslmode=disable
|
||||
|
||||
# -----------------------------
|
||||
# Access logs
|
||||
@@ -67,9 +73,9 @@ ZITADEL_ACCESS_LOG_STDOUT_ENABLED=true
|
||||
# Enable with --profile cache and switch connectors to redis.
|
||||
# -----------------------------
|
||||
ZITADEL_CACHES_CONNECTORS_REDIS_ENABLED=false
|
||||
ZITADEL_CACHES_CONNECTORS_REDIS_ADDR=redis:6379
|
||||
ZITADEL_CACHES_CONNECTORS_REDIS_USERNAME=
|
||||
ZITADEL_CACHES_CONNECTORS_REDIS_PASSWORD=
|
||||
# DSN used by ZITADEL to connect to Redis.
|
||||
# See https://redis.io/docs/latest/develop/tools/cli/#host-port-password-and-database
|
||||
ZITADEL_CACHES_CONNECTORS_REDIS_URL=redis://redis:6379/0
|
||||
ZITADEL_CACHES_INSTANCE_CONNECTOR=
|
||||
ZITADEL_CACHES_MILESTONES_CONNECTOR=
|
||||
ZITADEL_CACHES_ORGANIZATION_CONNECTOR=
|
||||
|
||||
Reference in New Issue
Block a user