The repository contains a dockerized pgbouncer.
Available base images:
- debian:buster-slim
- alpine:3.15.4
Available pgbouncer versions:
- 1.14.0
- 1.15.0
- 1.16.0
- 1.16.1
- 1.17.0
There are two ways to configure dockerized pgbouncer:
- Upload config files to container (path
/etc/pgbouncer/pgbouncer.iniand/etc/pgbouncer/userlist.txt) - Set environment variables starting with prefix
PGBOUNCER_INI_*
Here are some env vars:
PGBOUNCER_INI_DATABASE_DSN- data source name for database, examplepostgresql://user:pass@host:port/dbnamePGBOUNCER_INI_DATABASE_HOST- hostnamePGBOUNCER_INI_DATABASE_USER- userPGBOUNCER_INI_DATABASE_PASSWORD- passwordPGBOUNCER_INI_DATABASE_NAME- database namePGBOUNCER_INI_POOL_MODE- set pool mode- etc