1
0
forked from erp-dev/erp
This commit is contained in:
2025-12-24 23:40:13 +08:00
parent c331cfa880
commit 13d5e1c160
5 changed files with 9 additions and 13 deletions

View File

@@ -25,7 +25,8 @@ services:
container_name: pgbouncer
# 使用环境变量配置,让镜像自动生成配置文件
environment:
# 数据库连接配置(格式:数据库名=host=主机 port=端口 dbname=数据库名 user=用户 password=密码)
# 数据库连接配置 - 使用 DATABASES 环境变量(格式:数据库名=host=主机 port=端口 dbname=数据库名 user=用户 password=密码)
# 确保密码与 PostgreSQL 容器的 POSTGRES_PASSWORD 完全一致
DATABASES: flower=host=postgres port=5432 dbname=flower user=postgres password=postgres
# PgBouncer 基本配置
PGBOUNCER_LISTEN_ADDR: 0.0.0.0