From f5795a8bc816f9fddaf03f7499d14f3452b181e4 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 5 Sep 2024 15:00:00 +0800 Subject: [PATCH] Increase connection count --- docker-compose.demo.yml | 2 ++ docker-compose.dev.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/docker-compose.demo.yml b/docker-compose.demo.yml index bbc5326..8c05682 100644 --- a/docker-compose.demo.yml +++ b/docker-compose.demo.yml @@ -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 diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 58fc5ab..75ed070 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -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: