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

miguelmota/docker-pgbouncer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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