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
|
||||
|
||||
@@ -17,7 +17,8 @@ spring:
|
||||
database: 0 # Redis 数据库索引
|
||||
# password: # Redis 密码,如果有的话
|
||||
timeout: 30000ms # 连接超时时间
|
||||
|
||||
server:
|
||||
port: 48095
|
||||
--- #################### 消息队列相关 ####################
|
||||
|
||||
# rocketmq 配置项,对应 RocketMQProperties 配置类
|
||||
|
||||
Reference in New Issue
Block a user