chore(deploy): 生产 compose 支持 HOST_PORT 变量 (灰度验证时先用备用端口)
This commit is contained in:
@@ -52,7 +52,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data/cache:/app/cache
|
- ./data/cache:/app/cache
|
||||||
ports:
|
ports:
|
||||||
- "3001:3001"
|
- "${HOST_PORT:-3001}:3001"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3001/api/health || exit 1"]
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3001/api/health || exit 1"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
Reference in New Issue
Block a user