Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (30 loc) · 728 Bytes

README.md

File metadata and controls

47 lines (30 loc) · 728 Bytes

docker-pgbouncer

Dockerfile for running pgbouncer

Setup

git clone git@github.com:miguelmota/docker-pgbouncer.git
cd docker-pgbouncer
cp env.list.sample env.list

env.list should contain the following environment variables

  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_USER
  • POSTGRES_PASS

Build

docker build -t pgbouncer --no-cache .

Run

docker run --env-file=env.list pgbouncer

Connect

Connect to pgbouncer proxied database

PGPASSWORD=<pg_password> psql -h <docker_ip> -p 6432 -U <pg_username> <pg_dbname>

Resources

License

MIT