refactor(hindsight): 使用Volumes_Path替代硬编码路径

- backup.job 改为从 env.cfg 读取 Volumes_Path
- stack.yml 路径替换为变量引用
- .gitignore 添加 hindsight/env.cfg
This commit is contained in:
cnphpbb
2026-06-08 03:28:26 +08:00
parent db61398dce
commit 0cf24fee31
3 changed files with 8 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
# Hindsight 部署栈
# ============================================================
# 部署前准备(仅首次):
# mkdir -pv /home/geng/hindsight/pgdata /home/geng/hindsight/backups
# sudo chown -R 999:999 /home/geng/hindsight/pgdata
# mkdir -pv ${Volumes_Path}/pgdata ${Volumes_Path}/backups
# sudo chown -R 999:999 ${Volumes_Path}/pgdata
# cp env.cfg.example env.cfg && $EDITOR env.cfg # 填入密码/API Key
#
# pull:: docker compose --env-file ./hindsight/env.cfg -f ./hindsight/stack.yml pull