build(hindsight): 添加 PostgreSQL 端口映射

This commit is contained in:
cnphpbb
2026-06-08 04:21:48 +08:00
parent 8a3aa4c0b8
commit 94b0ec7091

View File

@@ -11,7 +11,7 @@
# - DB 数据 bind 挂到 /home/geng/hindsight/pgdataWSL 原生 fs,避 9P fsync 风险)
# - 复用宿主 HF 缓存bge + ms-marco 不重下)
# - 镜像走南京大学 ghcr 镜像,国内拉得快
# - 端口 8888=API, 9999=Admin UI,绑定 0.0.0.0 供 LAN VM 访问
# - 端口 8888=API, 9999=Admin UI, 5432=PostgreSQL,绑定 0.0.0.0 供 LAN VM 访问
# ============================================================
services:
@@ -29,6 +29,8 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ${Volumes_Path}/pgdata:/var/lib/postgresql/${HINDSIGHT_DB_VERSION:-18}/docker
ports:
- "${HINDSIGHT_DB_PORT:-5432}:5432"
healthcheck:
test:
[