Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to multiple databases and controlling the user list directly #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TimSC
Copy link

@TimSC TimSC commented Aug 29, 2021

For connecting to multiple databases and controlling the user list directly, the DB_DATABASES and AUTH_USERLIST env variables may be used.

docker run -e DB_DATABASES='flask = host = 192.168.1.5 port=5432 user=web_user password=xxxx dbname=flask,data_web = host = 192.168.1.10 port=5432 user=web_user password=xxxxx dbname=data_web' -e LISTEN_PORT=5439 -p 5439:5439 -e AUTH_USERLIST="\"username1\" \"password\",\"username2\" \"password2\"" pgbouncer

@jheld
Copy link

jheld commented Dec 20, 2021

Would love to have this support merged.

noyceb added a commit to dapperlabs-platform/docker-pgbouncer that referenced this pull request Feb 16, 2022
noyceb added a commit to dapperlabs-platform/docker-pgbouncer that referenced this pull request Feb 16, 2022
@homme
Copy link

homme commented Apr 7, 2022

It would be nice if this extended the current DATABASE_URL idiom to allow multiple URLs, e.g. by setting DATABASE_URLS. At the moment it's limited to the postgres specific DSN format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants