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