feat: 更新 Docker 配置,修改服务端口和健康检查 URL
Deploy backend / deploy (push) Successful in 48s

This commit is contained in:
yuxuanhui
2026-09-30 10:28:55 +08:00
parent 90a4c0a155
commit 8f0c12ecfa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
"${compose[@]}" build api "${compose[@]}" build api
"${compose[@]}" up -d --wait --wait-timeout 180 "${compose[@]}" up -d --wait --wait-timeout 180
docker run --rm --network host --entrypoint wget "ballet-island-api:${IMAGE_TAG}" \ docker run --rm --network host --entrypoint wget "ballet-island-api:${IMAGE_TAG}" \
-q -T 3 -O /dev/null http://127.0.0.1:8080/readyz -q -T 3 -O /dev/null http://127.0.0.1:8113/readyz
- name: Show container status - name: Show container status
if: always() if: always()
+1 -1
View File
@@ -12,7 +12,7 @@ services:
WECHAT_APP_ID: ${WECHAT_APP_ID:?Set WECHAT_APP_ID} WECHAT_APP_ID: ${WECHAT_APP_ID:?Set WECHAT_APP_ID}
WECHAT_APP_SECRET: ${WECHAT_APP_SECRET:?Set WECHAT_APP_SECRET} WECHAT_APP_SECRET: ${WECHAT_APP_SECRET:?Set WECHAT_APP_SECRET}
ports: ports:
- "127.0.0.1:8080:8080" - "127.0.0.1:8113:8080"
healthcheck: healthcheck:
test: ["CMD", "wget", "-q", "-T", "3", "-O", "/dev/null", "http://127.0.0.1:8080/readyz"] test: ["CMD", "wget", "-q", "-T", "3", "-O", "/dev/null", "http://127.0.0.1:8080/readyz"]
interval: 10s interval: 10s