We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89ba971 commit 69523c7Copy full SHA for 69523c7
2 files changed
Caddyfile
@@ -3,6 +3,6 @@
3
{$CADDY_SITE_ADDRESS::80} {
4
# 将所有请求转发至后端 Spring Boot 服务
5
reverse_proxy {$CADDY_UPSTREAM:backend:8080} {
6
- health_uri /actuator/health
+ health_uri /api/v1/actuator/health
7
}
8
docker-compose.yml
@@ -28,7 +28,7 @@ services:
28
expose:
29
- "${SERVER_PORT:-8080}"
30
healthcheck:
31
- test: ["CMD-SHELL", "curl -fsS \"http://127.0.0.1:${SERVER_PORT:-8080}/actuator/health\" | grep '\"status\":\"UP\"' >/dev/null || exit 1"]
+ test: ["CMD-SHELL", "curl -fsS \"http://127.0.0.1:${SERVER_PORT:-8080}/api/v1/actuator/health\" | grep '\"status\":\"UP\"' >/dev/null || exit 1"]
32
interval: 30s
33
timeout: 5s
34
retries: 3
0 commit comments