Increase DB connection limit

This commit is contained in:
Keannu Bernasol 2024-09-05 16:28:13 +08:00
parent f5795a8bc8
commit 1eccfb9ced

View file

@ -82,7 +82,7 @@ services:
- POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_PASSWORD=${DB_PASSWORD}
volumes: volumes:
- db-data:/var/lib/postgresql/data - db-data:/var/lib/postgresql/data
command: postgres -c max_connections=512 command: postgres -c max_connections=200
# DB Bouncer # DB Bouncer
pgbouncer: pgbouncer:
@ -92,6 +92,7 @@ services:
- PGBOUNCER_DATABASE=${DB_DATABASE} - PGBOUNCER_DATABASE=${DB_DATABASE}
- POSTGRESQL_USERNAME=${DB_USERNAME} - POSTGRESQL_USERNAME=${DB_USERNAME}
- POSTGRESQL_PASSWORD=${DB_PASSWORD} - POSTGRESQL_PASSWORD=${DB_PASSWORD}
- PGBOUNCER_MAX_DB_CONNECTIONS=200
depends_on: depends_on:
- postgres - postgres