Initial commit
This commit is contained in:
commit
207307ec9d
3 changed files with 70 additions and 0 deletions
34
README.md
Normal file
34
README.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# ThingsBoard
|
||||
|
||||
<p align="center">
|
||||
<span><a href="https://thingsboard.io/docs/" alt="ThingsBoard Docs">Documentation</a></span>
|
||||
<span><a href=http://localhost:8080/" alt="local ThingsBoard instance">Local instance</a></span>
|
||||
</p>
|
||||
|
||||
## 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
|
||||
```
|
||||
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
|
|
@ -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
|
||||
|
||||
BIN
extra/project.pdf
Executable file
BIN
extra/project.pdf
Executable file
Binary file not shown.
Reference in a new issue