https://github.com/chfern/pgbouncer-docker
Dockerized pgbouncer
https://github.com/chfern/pgbouncer-docker
Last synced: 5 months ago
JSON representation
Dockerized pgbouncer
- Host: GitHub
- URL: https://github.com/chfern/pgbouncer-docker
- Owner: chfern
- Created: 2021-02-06T19:21:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-06T20:42:00.000Z (over 5 years ago)
- Last Synced: 2025-09-07T08:21:06.257Z (10 months ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PgBouncer
A Dockerized pgBouncer for postgres connection pooling. This image is available in [dockerhub](https://hub.docker.com/repository/docker/fernandochristyanto/pgbouncer) for pulling.
## How To Use This Image
### Configuration File Setup
1. Create a `pgbouncer.ini` file, refer to `pgbouncer.ini.example`
2. Create a `userlist.txt` file, refer to `userlist.txt.example`
### Running the container
This image expects pgbouncer configuration files to be placed in `/etc/pgbouncer/*` and exposes pgbouncer at port 6432.
To run a container, execute:
```sh
docker run \
-p 6432:6432 \
-v $(pwd)/pgbouncer.ini:/etc/pgbouncer/pgbouncer.ini \
-v $(pwd)/userlist.txt:/etc/pgbouncer/userlist.txt \
fernandochristyanto/pgbouncer:1.15.0
```