Skip to content
Stand with Ukraine flag

Installing ThingsBoard PE on DigitalOcean

This guide walks you through installing ThingsBoard Professional Edition 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:

    PortProtocolDescription
    22TCPSSH access
    80TCPHTTP access
    443TCPHTTPS access
    1883TCPMQTT protocol
    5683UDPCoAP 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.

You may want to configure HTTPS access using HAProxy. This is possible if you have a valid DNS name assigned to your instance. Follow the HAProxy HTTPS guide to install HAProxy and generate a valid SSL certificate using Let’s Encrypt.

To maintain database integrity and system stability, perform upgrades sequentially (e.g., v4.0.2 → v4.1.0 → v4.2.0). See the Upgrade Instructions for detailed steps.

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

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