{"repo":"edoburu/docker-pgbouncer","free":true,"listed":false,"github":"https://github.com/edoburu/docker-pgbouncer","clone":"git clone https://github.com/edoburu/docker-pgbouncer.git","description":"Minimal PgBouncer image that is easy to configure","language":"Shell","stars":609,"topics":["docker","pgbouncer","kubernetes","postgresql"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"PgBouncer Docker image ====================== This is a minimal PgBouncer image, based on Alpine Linux. Features: Very small, quick to pull (just 15MB) Configurable using environment variables Uses standard Postgres port 5432, to work transparently for applications. Includes PostgreSQL client tools such as psql , pg isready MD5 authentication by default. /etc/pgbouncer/pgbouncer.ini and /etc/pgbouncer/userlist.txt are auto-created if they don't exist. Why use PgBouncer ----------------- PostgreSQL connections take up a lot of memory (about 10MB per connection). There is also a significant startup cost to establish a connection with TLS, hence web applications gain performance by using persistent connections. By placing PgBouncer in between the web application and the actual PostgreSQL database, the memory and start-up costs are reduced. The web application can keep persistent connections to PgBouncer, while PgBouncer only keeps a few connections to the actual PostgreSQL server. It can reuse the same connection for multiple clients. Usage ----- Or using separate variables: During startup we'll generate the necessary userlist.txt & pgbouncer.ini entries to match this information. Connecting should work as expected: [!NOTE] If you need quick multi-user setup you can use DATABASE URLS (instead of DATABASE URL ) with a comma ( , ) separated list of URLs. Configuration ------------- Almost all settings found in the pgbouncer.ini can be defined as environment variables, except a few","default_branch":null,"files":null,"tree":[],"storefront":"/r/edoburu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/edoburu/docker-pgbouncer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}