Skip to content
Stand with Ukraine flag

Install with Docker Compose (Windows)

Install and run ThingsBoard IoT Gateway using Docker Compose on Windows.

  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. Open a command prompt as Administrator, navigate to the folder containing the downloaded docker-compose.yml file, and 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.