chore(deploy): 生产 compose 支持 HOST_PORT 变量 (灰度验证时先用备用端口)

This commit is contained in:
jif2.zhang
2026-10-26 22:18:31 +08:00
parent 71dcf7e1b1
commit cc2677ce06
+1 -1
View File
@@ -52,7 +52,7 @@ services:
volumes:
- ./data/cache:/app/cache
ports:
- "3001:3001"
- "${HOST_PORT:-3001}:3001"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3001/api/health || exit 1"]
interval: 30s