From 2a4400e8eead2604bac875c4c3228e936c633408 Mon Sep 17 00:00:00 2001 From: lzh Date: Wed, 14 Jan 2026 13:50:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20Jenkins=E4=BF=AE=E5=A4=8D8-=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=BD=BF=E7=94=A81panel-network=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.core.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docker-compose.core.yml b/docker-compose.core.yml index 25a772e..039aa17 100644 --- a/docker-compose.core.yml +++ b/docker-compose.core.yml @@ -1,8 +1,9 @@ version: '3.8' networks: - aiot-network: - driver: bridge + default: + name: 1panel-network + external: true volumes: app-logs: @@ -12,7 +13,8 @@ services: image: ${REGISTRY_HOST:-localhost:5000}/viewsh-gateway:${IMAGE_TAG:-latest} container_name: aiot-gateway restart: on-failure:5 - network_mode: host + ports: + - "48080:48080" environment: # ===== 基础配置 ===== TZ: Asia/Shanghai @@ -31,7 +33,7 @@ services: # ===== Redis 配置 ===== SPRING_DATA_REDIS_HOST: 172.17.16.14 SPRING_DATA_REDIS_PORT: 6379 - SPRING_DATA_REDIS_PASSWORD: "9kHXcZ1ojFsD" # TODO: 填入实际的 Redis 密码 + SPRING_DATA_REDIS_PASSWORD: "9kHXcZ1ojFsD" volumes: - app-logs:/app/logs @@ -51,7 +53,8 @@ services: image: ${REGISTRY_HOST:-localhost:5000}/viewsh-module-system-server:${IMAGE_TAG:-latest} container_name: aiot-system-server restart: on-failure:5 - network_mode: host + ports: + - "48081:48081" environment: TZ: Asia/Shanghai SPRING_PROFILES_ACTIVE: prod @@ -100,7 +103,8 @@ services: image: ${REGISTRY_HOST:-localhost:5000}/viewsh-module-infra-server:${IMAGE_TAG:-latest} container_name: aiot-infra-server restart: on-failure:5 - network_mode: host + ports: + - "48082:48082" environment: TZ: Asia/Shanghai SPRING_PROFILES_ACTIVE: prod @@ -135,7 +139,8 @@ services: image: ${REGISTRY_HOST:-localhost:5000}/viewsh-module-iot-server:${IMAGE_TAG:-latest} container_name: aiot-iot-server restart: on-failure:5 - network_mode: host + ports: + - "48083:48083" environment: TZ: Asia/Shanghai SPRING_PROFILES_ACTIVE: prod @@ -183,7 +188,8 @@ services: image: ${REGISTRY_HOST:-localhost:5000}/viewsh-module-iot-gateway:${IMAGE_TAG:-latest} container_name: aiot-iot-gateway restart: on-failure:5 - network_mode: host + ports: + - "48084:48084" environment: TZ: Asia/Shanghai SPRING_PROFILES_ACTIVE: prod