diff --git a/docker-compose.zitadel.yml b/docker-compose.zitadel.yml index 17730f1..df2f6a9 100644 --- a/docker-compose.zitadel.yml +++ b/docker-compose.zitadel.yml @@ -137,6 +137,10 @@ services: - 'ZITADEL_DATABASE_POSTGRES_ADMIN_USERNAME=zit' - 'ZITADEL_DATABASE_POSTGRES_ADMIN_PASSWORD=zit' - 'ZITADEL_DATABASE_POSTGRES_ADMIN_SSL_MODE=disable' + - 'ZITADEL_DATABASE_POSTGRES_MAXOPENCONNS=20' + - 'ZITADEL_DATABASE_POSTGRES_MAXIDLECONNS=10' + - 'ZITADEL_DATABASE_POSTGRES_MAXCONNLIFETIME=30m' + - 'ZITADEL_DATABASE_POSTGRES_MAXCONNIDLETIME=10m' - 'ZITADEL_SYSTEMDEFAULTS_SECRETGENERATORS_PASSWORDSALTCOST=1' - 'ZITADEL_EXTERNALSECURE=false' - 'ZITADEL_EXTERNALPORT=${ZITADEL_EXTERNALPORT:-8080}' diff --git a/templates/docker-compose.zitadel.j2 b/templates/docker-compose.zitadel.j2 index 5a5b928..0fa6e21 100644 --- a/templates/docker-compose.zitadel.j2 +++ b/templates/docker-compose.zitadel.j2 @@ -157,6 +157,10 @@ services: - 'ZITADEL_DATABASE_POSTGRES_ADMIN_USERNAME=zit' - 'ZITADEL_DATABASE_POSTGRES_ADMIN_PASSWORD=zit' - 'ZITADEL_DATABASE_POSTGRES_ADMIN_SSL_MODE=disable' + - 'ZITADEL_DATABASE_POSTGRES_MAXOPENCONNS=20' + - 'ZITADEL_DATABASE_POSTGRES_MAXIDLECONNS=10' + - 'ZITADEL_DATABASE_POSTGRES_MAXCONNLIFETIME=30m' + - 'ZITADEL_DATABASE_POSTGRES_MAXCONNIDLETIME=10m' - 'ZITADEL_SYSTEMDEFAULTS_SECRETGENERATORS_PASSWORDSALTCOST=1' - 'ZITADEL_EXTERNALSECURE=false' - 'ZITADEL_EXTERNALPORT=${ZITADEL_EXTERNALPORT:-8080}'