{"id":15483199,"url":"https://github.com/zpascal/pgbouncer-container","last_synced_at":"2026-01-06T19:51:02.808Z","repository":{"id":43005187,"uuid":"364487486","full_name":"ZPascal/pgbouncer-container","owner":"ZPascal","description":"The repository includes a PgBouncer connection pooler docker container","archived":false,"fork":false,"pushed_at":"2024-08-02T18:10:00.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-19T06:04:31.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZPascal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-05T06:56:31.000Z","updated_at":"2024-08-02T18:09:00.000Z","dependencies_parsed_at":"2024-12-08T03:15:44.655Z","dependency_job_id":null,"html_url":"https://github.com/ZPascal/pgbouncer-container","commit_stats":{"total_commits":32,"total_committers":2,"mean_commits":16.0,"dds":0.03125,"last_synced_commit":"998d4ad7ff4a7c01aba9cd0e560d93c186e79957"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fpgbouncer-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fpgbouncer-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fpgbouncer-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fpgbouncer-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZPascal","download_url":"https://codeload.github.com/ZPascal/pgbouncer-container/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246093099,"owners_count":20722395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T05:10:57.025Z","updated_at":"2026-01-06T19:51:02.796Z","avatar_url":"https://github.com/ZPascal.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PgBouncer Docker container\n\n## Influenced repositories\n- https://github.com/edoburu/docker-pgbouncer\n- https://github.com/mbentley/dockerfiles\n\n## Used versions\n- [alpine:3.22](https://hub.docker.com/_/alpine)\n- [pgBouncer 1.25.1](https://github.com/pgbouncer/pgbouncer/releases/tag/pgbouncer_1_25_1)\n## Supported setup parameter\n| Env variable | Default value | Example value | Required |\n|:------------:|:-------------:|:-------------:|:--------:|\n| PG_ENV_POSTGRESQL_USER |  | pgbouncer | Yes |\n| PG_ENV_POSTGRESQL_PASS |  | pgbouncer | Yes |\n| PG_PORT_5432_TCP_ADDR |  | localhost  | No |\n| PG_PORT_5432_TCP_PORT |  | 5432 | No |\n| PG_ENV_POSTGRESQL_MAX_CLIENT_CONN | 10000 | 10000 | No |\n| PG_ENV_POSTGRESQL_DEFAULT_POOL_SIZE | 400 | 400 | No |\n| PG_ENV_POSTGRESQL_SERVER_IDLE_TIMEOUT | 240 | 240 | No |\n| PG_ENV_POSTGRESQL_POOL_MODE | session | session | No |\n\n## Functionality\nThe run script creates automatically the corresponding configuration and sets the ```PG_ENV_POSTGRESQL_USER``` variable as stats_user inside the PgBouncer configuration. After the preparation step, the run script starts pgbouncer automatically and the container bound the port ```6432``` to share the PgBouncer service.\n\n\n## Docker-compose example\n\n```yaml\nversion: '3'\n\nservices:\n  pgbouncer:\n    image: z9pascal/pgbouncer\n    environment:\n      - PG_ENV_POSTGRESQL_USER=pgbouncer\n      - PG_ENV_POSTGRESQL_PASS=pgbouncer\n    ports:\n      - \"6432:6432\"\n```\n\n## Contribution\n\nIf you would like to contribute, have an improvement request, or want to make a change inside the code, please open a pull request.\n\n## Support\n\nIf you need support, or you encounter a bug, please don't hesitate to open an issue.\n\n## Donations\n\nIf you want to support my work, I ask you to take an unusual action inside the open source community. Donate the money to a non-profit organization like Doctors Without Borders or the Children's Cancer Aid. I will continue to build tools because I like them, and I am passionate about developing and sharing applications.\n\n## License\n\nThis product is available under the Apache 2.0 [license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpascal%2Fpgbouncer-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzpascal%2Fpgbouncer-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpascal%2Fpgbouncer-container/lists"}