Creates a container running
The traffic flow is:
- Ingress on
- Back into
stunnel, egressing to your defined
This allows for encrypted Postgres traffic into and out of the container.
pgbouncer are both managed by a
supervisord process in the container.
docker run --name pgbnc0 -e "POSTGRES_URL=..." docker-pgbouncer
Required Environment Variables
POSTGRES_URL must be passed to the container in the format
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.