From b3d13dacc8ed92ddbcf373cded5347c4f9ae43b9 Mon Sep 17 00:00:00 2001 From: lzh Date: Tue, 13 Jan 2026 18:12:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E5=AE=BF=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA=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 - 改用 172.17.16.14 替代 localhost - 确保健康检查在 host 网络模式下正常工作 --- docker-compose.core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.core.yml b/docker-compose.core.yml index aeea916..d8b9145 100644 --- a/docker-compose.core.yml +++ b/docker-compose.core.yml @@ -41,7 +41,7 @@ services: memory: ${GATEWAY_MEMORY_LIMIT} cpus: '1.0' healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:48080/actuator/health"] + test: ["CMD", "sh", "-c", "wget --no-verbose --tries=1 --spider http://172.17.16.14:48080/ || exit 1"] interval: ${HEALTH_CHECK_INTERVAL} timeout: ${HEALTH_CHECK_TIMEOUT} retries: ${HEALTH_CHECK_RETRIES}