forked from DevOps/deploy.stack
- env.cfg.example 新增 Volumes_Path=/data/volumes/postgres
- prod.stack.yml 卷路径改用 ${Volumes_Path} 变量
- pgvector.stack.yml 补充部署命令注释并设置默认认证方式
- redis env.cfg.example 补充数据目录创建说明
32 lines
977 B
Plaintext
32 lines
977 B
Plaintext
# ============================================================
|
|
# postgres 部署 — 公共环境变量模板(不含敏感信息)
|
|
# 复制为 env.cfg 后填入真实值,env.cfg 已被 .gitignore 忽略
|
|
# ============================================================
|
|
#
|
|
# 使用方式:
|
|
# cp env.cfg.example env.cfg
|
|
# $EDITOR env.cfg # 填入真实密码/密钥后保存
|
|
# docker compose -p postgres --env-file ./env.cfg -f ./stack.yml up -d
|
|
#
|
|
# ============================================================
|
|
# ⚠️ 敏感值(必填,env.cfg 不提交)
|
|
# ============================================================
|
|
# 密码为生成的密码,请使用时修改后再部署
|
|
|
|
|
|
IMAGE_TAG=postgres:16.15
|
|
|
|
IMAGE_TAG_V17=postgres:17.10
|
|
|
|
IMAGE_TAG_V18=postgres:18.6
|
|
|
|
IMAGE_TAG_PGVECTOR_PG18=pgvector/pgvector:pg18-trixie
|
|
|
|
POSTGRES_USER=postgres
|
|
|
|
POSTGRES_PASSWORD=<your-strong-password>
|
|
|
|
POSTGRES_HOST_AUTH_METHOD=scram-sha-256
|
|
|
|
Volumes_Path=/data/volumes/postgres
|