Sign inSign up

pcm0/pgbouncer

By pcm0

Updated 1 day ago

PgBouncer built from upstream source for CloudNativePG.

Image
Databases & storage
0

4.4K

pcm0/pgbouncer repository overview

PgBouncer Container Images

Multi-platform PgBouncer container images built from upstream source for use with CloudNativePG and other PostgreSQL deployments.

Included Features

  • PgBouncer
  • c-ares asynchronous DNS
  • LDAP authentication
  • OpenSSL TLS
  • PostgreSQL client tools
  • Fedora, Rocky Linux, and Photon OS variants

PAM and systemd integration are disabled.

Usage

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.

Configuration

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.

Source

Image source and build definitions are available at PaulChristophel/docker-pgbouncer.

PgBouncer is distributed under its upstream ISC license.

Tag summary

Content type

Image

Digest

sha256:72a2989af

Size

25.2 MB

Last updated

1 day ago

docker pull pcm0/pgbouncer