Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: add POOLER_DB_POOL_SIZE to env vars in docker-compose (#36270)

abc313b1b580a99d
diff --git a/docker/.env.example b/docker/.env.example
index 2ca5a229c20..8ee5f75c680 100644
--- a/docker/.env.example
+++ b/docker/.env.example
@@ -26,10 +26,17 @@ POSTGRES_PORT=5432
############
# Supavisor -- Database pooler
############
+# Port Supavisor listens on for transaction pooling connections
POOLER_PROXY_PORT_TRANSACTION=6543
+# Maximum number of PostgreSQL connections Supavisor opens per pool
POOLER_DEFAULT_POOL_SIZE=20
+# Maximum number of client connections Supavisor accepts per pool
POOLER_MAX_CLIENT_CONN=100
+# Unique tenant identifier
POOLER_TENANT_ID=your-tenant-id
+# Pool size for internal metadata storage used by Supavisor
+# This is separate from client connections and used only by Supavisor itself
+POOLER_DB_POOL_SIZE=5
############
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index b2ebedbb784..6cd49f2921f 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -518,6 +518,7 @@ services:
POOLER_DEFAULT_POOL_SIZE: ${POOLER_DEFAULT_POOL_SIZE}
POOLER_MAX_CLIENT_CONN: ${POOLER_MAX_CLIENT_CONN}
POOLER_POOL_MODE: transaction
+ DB_POOL_SIZE: ${POOLER_DB_POOL_SIZE}
command:
[
"/bin/sh",