Complete the code to specify the PgBouncer service in the Supabase configuration.
services:
- name: [1]
image: pgbouncer/pgbouncerThe PgBouncer service must be named pgbouncer to be recognized properly in the Supabase setup.
Complete the PgBouncer configuration to set the pool mode to transaction.
[pgbouncer]
pool_mode = [1]The transaction pool mode allows PgBouncer to pool connections per transaction, improving efficiency.
Fix the error in the PgBouncer userlist configuration line.
"userlist.txt" contains: "[1]"
The correct format for PgBouncer userlist is double quotes around username and password, like "admin" "password".
Fill both blanks to configure PgBouncer to listen on all interfaces and use port 6432.
[pgbouncer] listen_addr = [1] listen_port = [2]
Setting listen_addr to "0.0.0.0" allows PgBouncer to accept connections from any IP. The default PgBouncer port is 6432.
Fill all three blanks to define a database entry in PgBouncer's config for Supabase.
[databases] [1] = host=[2] port=[3] dbname=supabase
The database name key should be supabase_db. The host is usually localhost when PgBouncer runs locally, and the PostgreSQL port is 5432.