docker-pgbouncer icon indicating copy to clipboard operation
docker-pgbouncer copied to clipboard

Connect to multiple databases and controlling the user list directly

Open TimSC opened this issue 4 years ago • 3 comments

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

TimSC avatar Aug 29 '21 12:08 TimSC

Would love to have this support merged.

jheld avatar Dec 20 '21 18:12 jheld

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.

homme avatar Apr 07 '22 14:04 homme