Increase connection count

This commit is contained in:
Keannu Bernasol 2024-09-05 15:00:00 +08:00
parent 16c45f8322
commit f5795a8bc8
2 changed files with 3 additions and 0 deletions

View file

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

View file

@ -82,6 +82,7 @@ services:
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- db-data:/var/lib/postgresql/data
command: postgres -c max_connections=512
# DB Bouncer
pgbouncer: