fix: Jenkins修复3-iot-server时序库缺失
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 12:02:30 +08:00
parent 52017f7e23
commit 4162783263
2 changed files with 34 additions and 0 deletions

View File

@@ -155,6 +155,12 @@ services:
SPRING_DATA_REDIS_PASSWORD: "9kHXcZ1ojFsD"
ROCKETMQ_NAME_SERVER: 172.17.16.14:9876
# TDengine
TDENGINE_HOST: 172.17.16.14
TDENGINE_PORT: 6041
TDENGINE_USERNAME: root
TDENGINE_PASSWORD: taosdata
volumes:
- app-logs:/app/logs
@@ -172,6 +178,8 @@ services:
depends_on:
viewsh-module-infra-server:
condition: service_healthy
tdengine:
condition: service_healthy
viewsh-module-iot-gateway:
image: ${REGISTRY_HOST:-localhost:5000}/viewsh-module-iot-gateway:${IMAGE_TAG:-latest}
@@ -210,3 +218,22 @@ services:
depends_on:
viewsh-module-iot-server:
condition: service_healthy
tdengine:
image: tdengine/tdengine:3.0.1.4
container_name: aiot-tdengine
restart: always
network_mode: host
environment:
TZ: Asia/Shanghai
TAOS_FIRST_EP: "172.17.16.14:6030"
TAOS_FQDN: "172.17.16.14"
volumes:
- ./tdengine/data:/var/lib/taos
- ./tdengine/log:/var/log/taos
healthcheck:
test: ["CMD", "taos", "-s", "show dnodes"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s

View File

@@ -63,6 +63,13 @@ spring:
url: jdbc:mysql://${MYSQL_SLAVE_HOST:${MYSQL_HOST:127.0.0.1}}:${MYSQL_SLAVE_PORT:${MYSQL_PORT:3306}}/${MYSQL_DATABASE:aiot_platform}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
username: ${MYSQL_SLAVE_USER:${MYSQL_USER:root}}
password: ${MYSQL_SLAVE_PASSWORD:${MYSQL_PASSWORD:}}
tdengine:
url: jdbc:TAOS-WS://${TDENGINE_HOST:172.17.16.14}:${TDENGINE_PORT:6041}/aiot_platform
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
username: ${TDENGINE_USERNAME:root}
password: ${TDENGINE_PASSWORD:taosdata}
druid:
validation-query: SELECT SERVER_STATUS()
data:
redis: