Skip to content

Conversation

@sigurd-rbj
Copy link

@sigurd-rbj sigurd-rbj commented Nov 17, 2025

Pull Request Template

Title

Add ThingsBoard over HTTP

Type of Change

  • [ x ] New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Security patch
  • UI/UX improvement

Description

Added support for automatically installing ThingsBoard CE when the Docker Compose stack is started. I introduced a new service called thingsboard-install, which runs ThingsBoard once with INSTALL_TB=true and LOAD_DEMO=true. This initializes the PostgreSQL database and sets up the demo dashboards and devices. After this service completes, the normal thingsboard-ce service starts and uses the initialized data.
This removes the need to run the manual installation command and allows the user to start PostgreSQL + ThingsBoard with a single docker compose command.

Testing

I tested the setup by starting the full stack with "docker compose --env-file .\config\services.env.template -f .\compose.services.secure.yml up -d thingsboard-ce". On a clean installation (empty data folders), ThingsBoard installed correctly, the demo data was loaded, and the thingsboard-ce service started normally afterward. I repeated the startup process to make sure the installation only ran once and that the stack behaved consistently.

Impact

[Discuss the impact of your changes on the project. This might include
effects on performance, new dependencies, or changes in behaviour.]

Additional Information

[Any additional information that reviewers should be aware of.]

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have added tests for all the new code and any changes made to
    existing code.
  • I have made corresponding changes to the documentation.

Copy link
Contributor

@prasadtalasila prasadtalasila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sigurd-rbj thanks for the PR. Please see the comments. The services are not using the TLS option currently. Please enable them with right TLS certificate. Also remember to update the documentation. Thanks.

@sonarqubecloud
Copy link

@prasadtalasila
Copy link
Contributor

PR #1367 includes the changes proposed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants