PgBouncer built from upstream source for CloudNativePG.
4.4K
Multi-platform PgBouncer container images built from upstream source for use with CloudNativePG and other PostgreSQL deployments.
PAM and systemd integration are disabled.
podman run --rm \
--name pgbouncer \
-p 6432:6432 \
-v ./pgbouncer.ini:/etc/pgbouncer/pgbouncer.ini:ro \
-v ./userlist.txt:/etc/pgbouncer/userlist.txt:ro \
docker.io/pcm0/pgbouncer:latest
PgBouncer runs as an unprivileged user and reads its configuration from:
/etc/pgbouncer/pgbouncer.ini
The default listening port is 6432.
A minimal pgbouncer.ini might look like:
[databases]
postgres = host=postgres port=5432 dbname=postgres
[pgbouncer]
listen_addr = 0.0.0.0
listen_port = 6432
auth_type = scram-sha-256
auth_file = /etc/pgbouncer/userlist.txt
pool_mode = transaction
See the PgBouncer documentation for all available settings.
Image source and build definitions are available at PaulChristophel/docker-pgbouncer.
PgBouncer is distributed under its upstream ISC license.
Content type
Image
Digest
sha256:72a2989af…
Size
25.2 MB
Last updated
1 day ago
docker pull pcm0/pgbouncer