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

This commit is contained in:
cnphpbb
2026-06-08 03:03:29 +08:00
parent 9c83f6e2e8
commit db61398dce
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ HINDSIGHT_DB_NAME=hindsight_db
# 宿主机数据卷路径(**必须 WSL/Linux ext4 原生 fs**,不能放 /mnt/9P
# bind 挂载 PostgreSQL 数据;放在 ~/hindsight/pgdata 而非 /mnt/d/mydata/
# 因为 9P drvfs 的 fsync 不可靠,会导致 PG 数据损坏。
Volumes_Path=/home/geng/hindsight
Volumes_Path=/data/Volumes/hindsight
# 服务端口(宿主机:容器)
HINDSIGHT_API_PORT=8888

View File

@@ -61,7 +61,7 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# 复用宿主 HF 缓存,bge + ms-marco 不重下
- /home/geng/.cache/huggingface:/home/hindsight/.cache/huggingface
- {Volumes_Path}/huggingface:/home/hindsight/.cache/huggingface
- ${Volumes_Path}/backups:/home/hindsight/backups
networks:
- hindsight-net