forked from DevOps/deploy.stack
chore(hindsight): 使用 Volumes_Path 替代硬编码路径
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user