docker-pgbouncer
docker-pgbouncer copied to clipboard
Connect to multiple databases and controlling the user list directly
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
Would love to have this support merged.
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.