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.
Prerequisites
Section titled “Prerequisites”- Active DigitalOcean account
Step 1. Create a DigitalOcean Droplet
Section titled “Step 1. Create a DigitalOcean Droplet”1.1 Create Droplet
Section titled “1.1 Create Droplet”Log in to your DigitalOcean account. Click the Droplets menu item and then the Create Droplet button.
1.2 Select your plan
Section titled “1.2 Select your plan”Select Ubuntu 24.04 LTS as your image and choose your plan.
1.3 Choose region
Section titled “1.3 Choose region”Select a datacenter region from the available list.
- Optional: Enable backups. Although optional, we highly recommend this.
- Optional: Add block storage.
1.4 Authentication
Section titled “1.4 Authentication”- 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.
Step 2. Configure firewall rules
Section titled “Step 2. Configure firewall rules”Configure firewall rules to allow MQTT, CoAP, and HTTP traffic.
-
Navigate to Networking → Firewalls and click Create Firewall.
-
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 -
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.
Step 4. Install ThingsBoard
Section titled “Step 4. Install ThingsBoard”Follow the Docker installation guide to install and configure ThingsBoard.
Post-installation steps
Section titled “Post-installation steps”Configure HTTPS
Section titled “Configure HTTPS”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.
Upgrading
Section titled “Upgrading”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.
Troubleshooting
Section titled “Troubleshooting”ThingsBoard logs are stored in /var/log/thingsboard. To check for errors:
cat /var/log/thingsboard/thingsboard.log | grep ERROR