feat: Add ThingsBoard IoT Gateway
This commit is contained in:
parent
f260727d70
commit
202b8b0c25
1 changed files with 36 additions and 0 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Reference in a new issue