HUB
Sign inSign up
pgbouncer logo

dockette/pgbouncer

Sponsored OSS

By dockette

•Updated 3 days ago

🐳 PgBouncer — PostgreSQL connection pooler

Image
0

8.1K

dockette/pgbouncer repository overview

⁠Dockette / PgBouncer

Docker image for PgBouncer⁠, a connection pooler for PostgreSQL.

šŸ•¹ f3l1x.io⁠ | šŸ’» f3l1x⁠ | 🐦 @xf3l1x⁠

GitHub Actions Docker Hub pulls GitHub Sponsors Support/Discussions


A thin republish of dhi.io/pgbouncer under the dockette/pgbouncer name on Docker Hub. Builds use FROM dhi.io/pgbouncer:${PGBOUNCER_VERSION}, so runtime behavior matches that upstream tag.

⁠Features

  • PgBouncer 1.26.0 on the upstream dhi.io/pgbouncer image
  • Pool port 6432
  • Config and userlist come from mounted files

⁠Usage

docker run --name some-pgbouncer -p 6432:6432 \
  -v /path/to/pgbouncer.ini:/etc/pgbouncer/pgbouncer.ini:ro \
  dockette/pgbouncer:latest

⁠Configuration

Mount your pgbouncer.ini (and an optional userlist) as in the example above. A minimal pgbouncer.ini; adjust host, auth and pool names for your setup:

[databases]
* = host=postgres port=5432

[pgbouncer]
listen_addr = 0.0.0.0
listen_port = 6432
auth_type = md5
auth_file = /etc/pgbouncer/userlist.txt
pool_mode = transaction
max_client_conn = 100
default_pool_size = 20

⁠Versions

VersionRelease
dockette/pgbouncer:1.26.0-YYYY.MM.DDrelease YYYY.MM.DD; pin this one
dockette/pgbouncer:1.26.0latest release
dockette/pgbouncer:YYYY.MM.DDrelease YYYY.MM.DD
dockette/pgbouncer:latestlatest build of master

All versions build on dhi.io/pgbouncer:1.26.0. Releases are listed on GitHub⁠. A PgBouncer upgrade is a release too.

⁠Development

make build          # build the image
make test           # print the PgBouncer version
make run            # run with pgbouncer.ini on port 6432 (PGBOUNCER_CONFIG, PGBOUNCER_USERLIST)
make version        # print VERSION
make release        # set today's date in VERSION

⁠Maintenance

See how to contribute⁠ to this package. Consider to support⁠ f3l1x. Thank you for using this package.

Tag summary

Content type

Image

Digest

sha256:dc7513cdc…

Size

7.3 MB

Last updated

3 days ago

docker pull dockette/pgbouncer

This week's pulls

Pulls:

40

Last week