feat: Add ThingsBoard IoT Gateway

This commit is contained in:
Tibo De Peuter 2025-12-20 20:28:06 +01:00
parent f260727d70
commit 202b8b0c25
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -29,6 +29,36 @@ services:
depends_on:
- postgres
tb-gateway:
image: thingsboard/tb-gateway:3.7-stable
container_name: tb-gateway
restart: always
# Ports bindings - required by some connectors
ports:
- "5000:5000" # Comment if you don't use REST connector and change if you use another port
# Uncomment and modify the following ports based on connector usage:
# - "1052:1052" # BACnet connector
# - "5026:5026" # Modbus TCP connector (Modbus Slave)
# - "50000:50000/tcp" # Socket connector with type TCP
# - "50000:50000/udp" # Socket connector with type UDP
# Necessary mapping for Linux
extra_hosts:
- "host.docker.internal:host-gateway"
# Environment variables
environment:
- host=thingsboard-ce
- port=1883
- accessToken=RDcjMLVRLNn9x0c5MZr5
# Volumes bind
volumes:
- tb-gw-config:/thingsboard_gateway/config
- tb-gw-logs:/thingsboard_gateway/logs
- tb-gw-extensions:/thingsboard_gateway/extensions
chirpstack:
image: chirpstack/chirpstack:4
command: -c /etc/chirpstack
@ -117,6 +147,12 @@ volumes:
postgres-data:
name: tb-postgres-data
driver: local
tb-gw-config:
name: tb-gw-config
tb-gw-logs:
name: tb-gw-logs
tb-gw-extensions:
name: tb-gw-extensions
chirp-postgresqldata:
chirp-redisdata: