commit 207307ec9de4734f386ab079e89d09add32b5913 Author: Tibo De Peuter Date: Mon Dec 1 14:48:21 2025 +0100 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..f6532c5 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# ThingsBoard + +

+Documentation +Local instance +

+ +## Setup + +After cloning the repository for the first time, you need to seed the database: + +```sh +docker compose run --rm -e INSTALL_TB=true -e LOAD_DEMO=true thingsboard-ce +``` + +Then, to start ThingsBoard: + +```sh +docker compose up -d +``` + +A [dashboard](http://localhost:8080/) will start on port `8080`. + +Login credentials: + +* System Administrator: `sysadmin@thingsboard.org` / `sysadmin` +* Tenant Administrator: `tenant@thingsboard.org` / `tenant` +* Customer User: `customer@thingsboard.org` / `customer` + +Stop ThingsBoard: + +```sh +docker compose down +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..72951e6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,36 @@ +services: + postgres: + restart: always + image: "postgres:16" + ports: + - "5432" + environment: + POSTGRES_DB: thingsboard + POSTGRES_PASSWORD: postgres + volumes: + - postgres-data:/var/lib/postgresql/data + thingsboard-ce: + restart: always + image: "thingsboard/tb-node:4.2.1" + ports: + - "8080:8080" # HTTP + - "7070:7070" # Edge RPC + - "1883:1883" # MQTT + - "8883:8883" # MQTT SSL + - "5683-5688:5683-5688/udp" # CoAP / LwM2M + logging: + driver: "json-file" + options: + max-size: "100m" + max-file: "10" + environment: + TB_SERVICE_ID: tb-ce-node + SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/thingsboard + depends_on: + - postgres + +volumes: + postgres-data: + name: tb-postgres-data + driver: local + diff --git a/extra/project.pdf b/extra/project.pdf new file mode 100755 index 0000000..99cb609 Binary files /dev/null and b/extra/project.pdf differ