This commit is contained in:
@@ -99,11 +99,12 @@ jobs:
|
||||
RETRY_COUNT=0
|
||||
|
||||
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
|
||||
if curl -f -s http://localhost:8080/actuator/health > /dev/null 2>&1; then
|
||||
# 使用正确的端口 (8443) 和协议 (HTTPS),不跳过SSL验证
|
||||
if curl -f -s https://localhost:8443/actuator/health > /dev/null 2>&1; then
|
||||
echo "✅ 应用健康检查通过"
|
||||
|
||||
# 获取详细的健康信息
|
||||
HEALTH_INFO=$(curl -s http://localhost:8080/actuator/health)
|
||||
HEALTH_INFO=$(curl -s https://localhost:8443/actuator/health)
|
||||
echo "健康状态: $HEALTH_INFO"
|
||||
break
|
||||
fi
|
||||
|
@@ -23,7 +23,7 @@ services:
|
||||
networks:
|
||||
- light-network
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
|
||||
test: ["CMD", "curl", "-f", "https://localhost:8443/actuator/health", "--insecure"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
Reference in New Issue
Block a user