ThingsBoard Docker#
What is ThingsBoard?#
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.
mkdir -p ~/.mytb-data && sudo chown -R 799:799 ~/.mytb-data
mkdir -p ~/.mytb-logs && sudo chown -R 799:799 ~/.mytb-logs
Installing ThingsBoard using Docker#
tb-postgres-standalone.yml
System Administrator: sysadmin@thingsboard.org / sysadmin
Tenant Administrator: tenant@thingsboard.org / tenant
Customer User: customer@thingsboard.org / customer
Cluster setup with Docker Compose#
Pull ThingsBoard CE Images
Review the architecture page
Clone ThingsBoard CE repository
Configure ThingsBoard database
Choose ThingsBoard queue service
Running
.env
tb.yml
docker-compose.postgres.yml
docker-compose.kafka.yml
Running#
./docker-create-log-folders.sh
./docker-install-tb.sh --loadDemo
./docker-start-services.sh
./docker-stop-services.sh
Upgrading#
$ ./docker-stop-services.sh
$ ./docker-remove-services.sh
$ ./docker-update-service.sh [SERVICE...]
ThingsBoard 3.1#
release-3.1, Tags: v3.1.1
Installing ThingsBoard using Docker (Windows)#
docker volume create mytb-data
docker volume create mytb-logs
docker run -it -p 9090:9090 -p 1883:1883 -p 5683:5683/udp -v mytb-data:/data -v ~/mytb-logs:/var/log/thingsboard --name mytb --restart always thingsboard/tb-postgres:3.1.1
ThingsBoard 3.2#
release-3.2, Tags: v3.2.2
ThingsBoard 3.3#
release-3.3, Tags: v3.3.4.1
ThingsBoard 3.4#
release-3.4, Tags: v3.4