Dockerfile for running pgbouncer
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
docker build -t pgbouncer --no-cache .
docker run --env-file=env.list pgbouncer
Connect to pgbouncer proxied database
PGPASSWORD=<pg_password> psql -h <docker_ip> -p 6432 -U <pg_username> <pg_dbname>
MIT