chore(deploy): 生产 compose 支持 HOST_PORT 变量 (灰度验证时先用备用端口)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user