fix: 调整IOT服务端口适配健康检查
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled

This commit is contained in:
lzh
2026-01-14 16:14:35 +08:00
parent 01f900a6fe
commit 99a4d72e04
2 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -17,7 +17,8 @@ spring:
database: 0 # Redis 数据库索引
# password: # Redis 密码,如果有的话
timeout: 30000ms # 连接超时时间
server:
port: 48095
--- #################### 消息队列相关 ####################
# rocketmq 配置项,对应 RocketMQProperties 配置类