fix: 调整IOT服务端口适配健康检查
This commit is contained in:
@@ -18,6 +18,7 @@ services:
|
||||
environment:
|
||||
# ===== 基础配置 =====
|
||||
TZ: Asia/Shanghai
|
||||
SERVER_PORT: 48084
|
||||
SPRING_PROFILES_ACTIVE: prod
|
||||
|
||||
# ===== JVM 配置 =====
|
||||
@@ -175,7 +176,7 @@ services:
|
||||
memory: 2560m
|
||||
cpus: '1.5'
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:48083/actuator/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:48091/actuator/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
@@ -189,7 +190,7 @@ services:
|
||||
container_name: aiot-iot-gateway
|
||||
restart: on-failure:5
|
||||
ports:
|
||||
- "48084:48084"
|
||||
- "48095:48095"
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
SPRING_PROFILES_ACTIVE: prod
|
||||
@@ -214,7 +215,7 @@ services:
|
||||
memory: 2560m
|
||||
cpus: '1.5'
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:48084/actuator/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:48095/actuator/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
|
||||
Reference in New Issue
Block a user