.1787171831827849:e6407b560611f019f141ab4a58bf4d8b_69e087779164881520c6ce9f.69e08b449164881520c6cee7.69e08b423656111c489c1389:Trae CN.T(2026/4/16 15:09:56)#2
Open
sonicmaster123 wants to merge 2 commits into
Conversation
添加pgbouncer配置文件模板、用户列表文件和Dockerfile 实现通过环境变量配置pgbouncer连接参数 添加entrypoint脚本用于启动时生成配置文件
添加环境变量检查函数,支持 POSTGRES_* 和 DB_* 两种前缀 增加 pgbouncer.ini 配置项和 userlist.txt 格式的验证逻辑 优化日志输出和权限设置流程
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.
修改 entrypoint.sh,启动前校验配置:检查 pgbouncer.ini 必需项(listen_addr、auth_type、pool_mode),检查 userlist.txt 格式,检查环境变量 POSTGRES_HOST/DB。校验失败输出错误并退出(码1)。输出修改后的 entrypoint.sh。