ThingsBoard is an open-source IoT platform that enables rapid development, management, and scaling of IoT projects. Our goal is to provide the out-of-the-box IoT cloud or on-premises solution that will enable server-side infrastructure for your IoT applications.
$ docker run -d --name some-thingsboard -e POSTGRESQL_HOST=postgre-host -e SPRING_DATASOURCE_URL=jdbc:postgresql://postgre-host:5432/thingsboard
-e SPRING_DATASOURCE_USERNAME=username -e SPRING_DATASOURCE_PASSWORD=password -p 9090:9090 -p 1883:1883 -p 5683:5683/udpimage:tag
Where:
some-thingsboard is name you want to assign to your containerpostgre-host is PostgreSQL endpoint at which Thingsboard is connectingusername is PostgreSQL username used to login in databasepassword is PostgreSQL password used to login in databaseimage is Docker image nametag is Docker image versionPOSTGRESQL_HOST
This is required variable. It specifies PostgreSQL endpoint at which Thingsboard will connect.
SPRING_DATASOURCE_URL
This is required variable. It specifies datasource URL in PostgreSQL database and its format is
jdbc:postgresql://*POSTGRESQL_HOST*:5432/thingsboard
SPRING_DATASOURCE_USERNAME
This is optional variable. It specifies PostgreSQL username (default is postgres).
SPRING_DATASOURCE_PASSWORD
This is required variable. It specifies password for PostgreSQL use.
TZ
This is optional variable. It specifes timezone. Default value is Europe/Zagreb.
Thingsboard exposes user interface at port 9090.
Thingsboard exposes MQTT port 1883.
Thingsboard exposed COAP port 5683.
To save Thingsboard data mount container path /data to host path.
$ -v some-host-path:/data
This Thingsboard image enables usage of external PostgreSQL database, instead of database inside Thingsboard container in classic Thinsgboard Docker images.
Content type
Image
Digest
Size
555.8 MB
Last updated
about 5 years ago
docker pull dalmatialab/thingsboard