Skip to content
© 2026 The ThingsBoard Authors
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

Install with Docker Compose (Linux / macOS)

Install and run ThingsBoard IoT Gateway using Docker Compose on Linux or macOS.

  1. Create a Gateway device and download the docker-compose.yml file.

    In ThingsBoard, go to Entities > Gateways and click the + icon in the upper-right corner. Enter a name, select the default device profile, and click Create. In the Launch command window that opens, click Download to save the docker-compose.yml file.

  2. Start the Gateway. From the directory containing the downloaded docker-compose.yml file, run:

    Terminal window
    docker compose up

To run the Gateway in detached (background) mode:

Terminal window
docker compose up -d

To view the Gateway logs after detaching:

Terminal window
docker logs -f tb-gateway

To update the Gateway to the latest image:

Terminal window
docker compose down
docker pull thingsboard/tb-gateway
docker compose up -d

For a full upgrade guide, see Upgrade instructions.