fix: Jenkins修复8-改为使用1panel-network容器网络
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 13:50:20 +08:00
parent d04b2e91e1
commit 2a4400e8ee

View File

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