
Deploy ThingsBoard - Postgres on Your Own Server
ThingsBoard is an open-source IoT platform for data collection, processing, visualization, device management, with an integrated Postgres database.
Want to deploy ThingsBoard - Postgres on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is ThingsBoard - Postgres?
ThingsBoard is an open-source IoT platform for data collection, processing, visualization, and device management. More details: https://thingsboard.io/
Self-Host ThingsBoard - Postgres
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
thingsboard_postgres:
image: thingsboard/tb-postgres:3.2.2
environment:
TB_QUEUE_TYPE: in-memory
volumes:
- thingsboard_postgres-data:/data
- thingsboard_postgres-logs:/var/log/thingsboard
ports:
- $$mqtt_port:1883
- $$coap_port:5683
volumes:
thingsboard_postgres-data: {}
thingsboard_postgres-logs: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:9090
Why Self-Host ThingsBoard - Postgres?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Docker Image
thingsboard/tb-postgres:${version}Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"