From 58b424982a65848126d3446018fcb48444900984 Mon Sep 17 00:00:00 2001 From: root <953994191@qq.com> Date: Tue, 14 Apr 2026 02:13:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=20Docker=20=E7=BD=91?= =?UTF-8?q?=E5=85=B3=20IP=20=E8=BF=9B=E8=A1=8C=E5=81=A5=E5=BA=B7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index df2ad55..7fb62b3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -57,7 +57,8 @@ jobs: echo "等待后端服务启动..." sleep 15 for i in {1..10}; do - if curl -f http://localhost:8001/health > /dev/null 2>&1; then + # 使用 Docker 默认网桥网关 IP (172.17.0.1) 访问宿主机的端口映射 + if curl -f http://172.17.0.1:8001/health > /dev/null 2>&1; then echo "✅ 后端服务正常" exit 0 fi