PostgreSQL connection pooler.
Simple out-of-box pgbouncer
for debian.
latest
: Same asdebian-jessie
.debian-jessie
:pgbouncer-1.5.4
ondebian:jessie
(Dockerfile)
Mount your configuration directory as a volume:
docker run -v <pgbouncer_config_dir>:/etc/pgbouncer:ro pgbouncer
You can use supplied config files, which are copied from a fresh debian installation. Also check pgbouncer's official config file documentation.
By default, pgbouncer writes logs to:
/var/log/postgresql/
And listens on:
0.0.0.0:6432
Docker-compose:
pgbouncer:
image: kotaimen/pgbouncer
ports:
- "6432:6432"
volumes:
- ./etc/pgbouncer:/etc/pgbouncer:ro
- ./log/postgresql:/var/log/postgresql:rw
restart: always