forked from DevOps/deploy.stack
fix(hindsight): 修复 huggingface 卷挂载缺少 $ 符号
同步更新 mkdir 准备命令添加 huggingface 目录
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Hindsight 部署栈
|
# Hindsight 部署栈
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# 部署前准备(仅首次):
|
# 部署前准备(仅首次):
|
||||||
# mkdir -pv ${Volumes_Path}/pgdata ${Volumes_Path}/backups
|
# mkdir -pv ${Volumes_Path}/{pgdata,backups,huggingface}
|
||||||
# sudo chown -R 999:999 ${Volumes_Path}/pgdata
|
# sudo chown -R 999:999 ${Volumes_Path}/pgdata
|
||||||
# cp env.cfg.example env.cfg && $EDITOR env.cfg # 填入密码/API Key
|
# cp env.cfg.example env.cfg && $EDITOR env.cfg # 填入密码/API Key
|
||||||
#
|
#
|
||||||
@@ -30,7 +30,11 @@ services:
|
|||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- ${Volumes_Path}/pgdata:/var/lib/postgresql/${HINDSIGHT_DB_VERSION:-18}/docker
|
- ${Volumes_Path}/pgdata:/var/lib/postgresql/${HINDSIGHT_DB_VERSION:-18}/docker
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${HINDSIGHT_DB_USER:-hindsight_user} -d ${HINDSIGHT_DB_NAME:-hindsight_db}"]
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"pg_isready -U ${HINDSIGHT_DB_USER:-hindsight_user} -d ${HINDSIGHT_DB_NAME:-hindsight_db}",
|
||||||
|
]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
@@ -61,7 +65,7 @@ services:
|
|||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
# 复用宿主 HF 缓存,bge + ms-marco 不重下
|
# 复用宿主 HF 缓存,bge + ms-marco 不重下
|
||||||
- {Volumes_Path}/huggingface:/home/hindsight/.cache/huggingface
|
- ${Volumes_Path}/huggingface:/home/hindsight/.cache/huggingface
|
||||||
- ${Volumes_Path}/backups:/home/hindsight/backups
|
- ${Volumes_Path}/backups:/home/hindsight/backups
|
||||||
networks:
|
networks:
|
||||||
- hindsight-net
|
- hindsight-net
|
||||||
|
|||||||
Reference in New Issue
Block a user