修改 thingsboard 部署
This commit is contained in:
parent
e7197e3d19
commit
4c97b8655b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue