Creates a container running pgbouncer and stunnel.
The traffic flow is:
:5432 to stunnelpgbouncer on :6000stunnel, egressing to your defined POSTGRES_URLThis allows for encrypted Postgres traffic into and out of the container.
stunnel and pgbouncer are both managed by a supervisord process in the container.
docker run --name pgbnc0 -e "POSTGRES_URL=..." docker-pgbouncer
POSTGRES_URL must be passed to the container in the format
POSTGRES_URL=postgres://user:password@host:port/database
This container only supports a single upstream database.
stunnel is using a self-signed cert. Postgres in sslmode=require is fine with this, but the verify modes will fail unless you replace it with a real cert.
Content type
Image
Digest
sha256:551f96596…
Size
93.8 MB
Last updated
almost 11 years ago
docker pull johncosta/docker-pgbouncer