Docker image for PgBouncer, a connection pooler for PostgreSQL.
πΉ f3l1x.io | π» f3l1x | π¦ @xf3l1x
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.
- PgBouncer
1.26.0on the upstreamdhi.io/pgbouncerimage - Pool port
6432 - Config and userlist come from mounted files
docker run --name some-pgbouncer -p 6432:6432 \
-v /path/to/pgbouncer.ini:/etc/pgbouncer/pgbouncer.ini:ro \
dockette/pgbouncer:latestMount 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| Version | Release |
|---|---|
dockette/pgbouncer:1.26.0-YYYY.MM.DD |
release YYYY.MM.DD; pin this one |
dockette/pgbouncer:1.26.0 |
latest release |
dockette/pgbouncer:YYYY.MM.DD |
release YYYY.MM.DD |
dockette/pgbouncer:latest |
latest 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.
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 VERSIONSee how to contribute to this package. Consider to support f3l1x. Thank you for using this package.