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 配置类