From b0b18d4b19b5794a2fe7c0206e6dc5838490735f Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Mon, 8 Jun 2026 03:46:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(hindsight):=20=E4=BF=AE=E5=A4=8D=20huggingf?= =?UTF-8?q?ace=20=E5=8D=B7=E6=8C=82=E8=BD=BD=E7=BC=BA=E5=B0=91=20$=20?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 同步更新 mkdir 准备命令添加 huggingface 目录 --- hindsight/stack.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hindsight/stack.yml b/hindsight/stack.yml index 7b8d3fb..d63a5fd 100644 --- a/hindsight/stack.yml +++ b/hindsight/stack.yml @@ -1,7 +1,7 @@ # Hindsight 部署栈 # ============================================================ # 部署前准备(仅首次): -# mkdir -pv ${Volumes_Path}/pgdata ${Volumes_Path}/backups +# mkdir -pv ${Volumes_Path}/{pgdata,backups,huggingface} # sudo chown -R 999:999 ${Volumes_Path}/pgdata # cp env.cfg.example env.cfg && $EDITOR env.cfg # 填入密码/API Key # @@ -30,7 +30,11 @@ services: - /etc/localtime:/etc/localtime:ro - ${Volumes_Path}/pgdata:/var/lib/postgresql/${HINDSIGHT_DB_VERSION:-18}/docker 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 timeout: 5s retries: 10 @@ -61,7 +65,7 @@ services: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro # 复用宿主 HF 缓存,bge + ms-marco 不重下 - - {Volumes_Path}/huggingface:/home/hindsight/.cache/huggingface + - ${Volumes_Path}/huggingface:/home/hindsight/.cache/huggingface - ${Volumes_Path}/backups:/home/hindsight/backups networks: - hindsight-net