Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.15 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.15 KB

Pgbouncer

PostgreSQL connection pooler.

Simple out-of-box pgbouncer for debian.

Tags

  • latest: Same as debian-jessie.
  • debian-jessie: pgbouncer-1.5.4 on debian:jessie (Dockerfile)

Usage

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