miguelmota / docker-pgbouncer

Dockerfile for running pgbouncer

Home Page:https://github.com/miguelmota/docker-pgbouncer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Dockerfile for running pgbouncer

https://github.com/miguelmota/docker-pgbouncer

License:MIT License


Languages

Language:Shell 100.0%