From 99a4d72e04e34c93ec2312c560a245465ca69bf8 Mon Sep 17 00:00:00 2001 From: lzh Date: Wed, 14 Jan 2026 16:14:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4IOT=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E9=80=82=E9=85=8D=E5=81=A5=E5=BA=B7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.core.yml | 7 ++++--- .../src/main/resources/application.yaml | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docker-compose.core.yml b/docker-compose.core.yml index 039aa17..1ec7be7 100644 --- a/docker-compose.core.yml +++ b/docker-compose.core.yml @@ -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 diff --git a/viewsh-module-iot/viewsh-module-iot-gateway/src/main/resources/application.yaml b/viewsh-module-iot/viewsh-module-iot-gateway/src/main/resources/application.yaml index abd4247..674027b 100644 --- a/viewsh-module-iot/viewsh-module-iot-gateway/src/main/resources/application.yaml +++ b/viewsh-module-iot/viewsh-module-iot-gateway/src/main/resources/application.yaml @@ -17,7 +17,8 @@ spring: database: 0 # Redis 数据库索引 # password: # Redis 密码,如果有的话 timeout: 30000ms # 连接超时时间 - +server: + port: 48095 --- #################### 消息队列相关 #################### # rocketmq 配置项,对应 RocketMQProperties 配置类