fix(postgres): 显式指定 Volumes_Path 和 initdb 编码

- env.cfg.example 新增 Volumes_Path=/data/volumes/postgres
- prod.stack.yml 卷路径改用 ${Volumes_Path} 变量
- pgvector.stack.yml 补充部署命令注释并设置默认认证方式
- redis env.cfg.example 补充数据目录创建说明
This commit is contained in:
cnphpbb
2026-09-20 22:58:45 +08:00
parent c8bf3fcf7f
commit 71946f38c4
4 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ services:
volumes:
# >=17 版本,数据目录为 /var/lib/postgresql
# <=16 版本,数据目录为 /var/lib/postgresql/data
- /data/volumes/postgres/data:/var/lib/postgresql
- ${Volumes_Path}/data:/var/lib/postgresql
# 时区配置
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro