修改 thingsboard 部署

This commit is contained in:
孙小云 2026-01-26 13:39:12 +08:00
parent e7197e3d19
commit 4c97b8655b
1 changed files with 35 additions and 0 deletions

View File

@ -379,3 +379,38 @@ services:
- wvp-pro
links:
- wvp-pro
thingsboard-postgres:
container_name: thingsboard-postgres
image: registry.t-aaron.com/postgres:16
restart: always
environment:
- TZ=Asia/Shanghai
- POSTGRES_DB=thingsboard
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- ./thingsboard/postgres-data:/var/lib/postgresql/data
thingsboard-ce:
container_name: thingsboard-ce
image: registry.t-aaron.com/thingsboard/tb-node:4.2.1.1
restart: always
environment:
- TZ=Asia/Shanghai
- TB_SERVICE_ID=tb-ce-node
- SPRING_DATASOURCE_URL=jdbc:postgresql://thingsboard-postgres:5432/thingsboard
ports:
- "18081:8080"
- "7070:7070"
- "1883:1883"
- "8883:8883"
- "5683-5688:5683-5688/udp"
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
depends_on:
- thingsboard-postgres
links:
- thingsboard-postgres