Skip to content
Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Installing ThingsBoard on DigitalOcean

This guide walks you through installing ThingsBoard on DigitalOcean.

Using this guide you will install the “Bring Your Own License” version. You get the license directly from ThingsBoard, Inc, but purchase the server instances and infrastructure from DigitalOcean.

Log in to your DigitalOcean account. Click the Droplets menu item and then the Create Droplet button.

Select Ubuntu 24.04 LTS as your image and choose your plan.

Select a datacenter region from the available list.

  • Optional: Enable backups. Although optional, we highly recommend this.
  • Optional: Add block storage.
  • Use an existing or create a new SSH key. Make sure you have access to the SSH key — you will need it later to connect via SSH.
  • Enter a meaningful hostname.
  • Click Create Droplet.

Once the droplet is created, copy the IP address to a safe place. You will use it later.

Configure firewall rules to allow MQTT, CoAP, and HTTP traffic.

  1. Navigate to Networking ⇾ Firewalls and click Create Firewall.

  2. Give your firewall a meaningful name and configure inbound rules:

    Port Protocol Description
    22 TCP SSH access
    80 TCP HTTP access
    443 TCP HTTPS access
    1883 TCP MQTT protocol
    5683 UDP CoAP protocol
  3. Leave outbound rules as-is. Select your droplet or tag to assign this firewall, then click Create Firewall.

Step 3. Connect to Your Instance Using SSH

Section titled “Step 3. Connect to Your Instance Using SSH”

Use the official guide and the SSH key you created during Step 1.4.

Follow the Docker installation guide to install and configure ThingsBoard.

Serving ThingsBoard over HTTPS encrypts the traffic between browsers and the server and prevents browser security warnings. HTTPS is handled by HAProxy: it accepts incoming traffic on ports 80 (HTTP) and 443 (HTTPS), terminates TLS with a trusted certificate from Let’s Encrypt, and forwards requests to ThingsBoard.

Before you start, make sure that:

  • a domain name is assigned to your server, and its DNS record points to the server’s IP address;
  • ports 80 and 443 are reachable from the internet.

Follow the HAProxy setup guide to install HAProxy and generate the certificate.

ThingsBoard logs are stored in /var/log/thingsboard. To check for errors:

Terminal window
cat /var/log/thingsboard/thingsboard.log | grep ERROR

With ThingsBoard running, these concept guides help you build your first solution: