feat: add PgBouncer in front of PostGIS - #402
Open
lewismc wants to merge 2 commits into
Open
Conversation
Drop slack_docker/SLACK_BOT_TOKEN from #398; keep PgBouncer service and app/cron routing.
|
renato2099
approved these changes
Aug 8, 2026
renato2099
left a comment
Collaborator
There was a problem hiding this comment.
having pgbouncer is good , thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Adds an internal-only PgBouncer hop for chatty Compose clients so PostGIS is not opened directly by every app/cron connection. Closes #106. Supersedes #196 (greenfield; do not rebase that PR).
Replaces the empty merge of #396 (that PR was merged while
feat/106-pgbouncerbriefly pointed atmainwith no PgBouncer commits).Changes
docker-compose.yml/docker-compose.test.yml:pgbouncerservice; app/cron usePOSTGRES_HOST=pgbouncerdb_utils.py+ cron: honorPOSTGRES_HOST/POSTGRES_PORTrenovate.json:looseversioning foredoburu/pgbouncermainafter Remove slack dependency #398 (Slack removal)Pre-commit / Super Linter lives in #400 (split out of this work).
Test plan
docker compose up -d --build— pgbouncer healthy; app/cron reach DBlocalhost:5432still hits PostGISPOSTGRES_HOST=localhostpath unchangedMade with Cursor