Requires Docker compose > 2.27
Select preconfigured services in docker-compose.yml by comment or uncomment includes.
⭐ Install git,wget and unzip (can be skip if already installed)
sudo apt update
sudo apt install -y git
sudo apt install -y wget
sudo apt install -y unzip
sudo rm -rf /var/lib/apt/lists/* ⭐ Choose directory or make a new one with appropriate permissions for writing and executing.
Clone repository adds folder Dockerized-Web-Framework-for-IoT.
⭐ Clone repository
git clone https://github.com/fkrenn12/Dockerized-Web-Framework-for-IoT.git
chmod +x ./Dockerized-Web-Framework-for-IoT/*.sh
rm -rf ./Dockerized-Web-Framework-for-IoT/*.ps1 ⭐ Open prefered IDE (pycharm, vscode) and clone https://github.com/fkrenn12/Dockerized-Web-Framework-for-IoT.git
⭐ or manual downloading the code or using the commands in Powershell
In Windows Powershell ( not cmd !! ) use following commands.
Remove-Item -Path ./master.zip
Invoke-WebRequest https://github.com/fkrenn12/Dockerized-Web-Framework-for-IoT/archive/master.zip -OutFile ./master.zip
Expand-Archive -Path ./master.zip -DestinationPath ./master
Remove-Item -Path ./master.zip
Copy-Item -Path ./master/Dockerized-Web-Framework-for-IoT-master ./Dockerized-Web-Framework-for-IoT -Recurse -Force
Remove-Item -Path ./master -Recurse -ForceIt will create a new folder: Dockerized-Web-Framework-for-IoT
⭐ Edit .env and docker-composer.yml
⭐ Execute x-rebuild_and_start.local.development.ps1
https://nodered.localhost
The default credentials for login into Editor & Admin API are admin/secretPassword.
The default credentials for Dashboard are user/user.
To set new password edit in Security section in file settings.json
adminAuth: {
type: "credentials",
users: [{
username: "admin",
password: "$2a$12$lozyn8x8FZGzho/ZyvNS5OmzTfWySUAruqYSFv.btCEuMfJW0iu3K",
permissions: "*"
}]
}
httpNodeAuth: {user:"user",pass:"$2a$12$B4eUfhmTowaDVnB9qLeEU.uofryi75w.FMmaXit788ngGsNN3Cw0W"},
httpStaticAuth: {user:"user",pass:"$2a$12$B4eUfhmTowaDVnB9qLeEU.uofryi75w.FMmaXit788ngGsNN3Cw0W"},
Generating new hashes (https://bcrypt-generator.com/). Replace it with copy and paste.
More about securing node-red: https://nodered.org/docs/user-guide/runtime/securing-node-red
https://web.localhost/index.php
https://phpmyadmin.localhost , https://adminer.localhost
| Target access | Subdomain | Username | Password | Database |
|---|---|---|---|---|
| mariadb | phpmyadmin | root | example | ALL |
| mariadb | phpmyadmin | foo | foo | foo |
| mariadb | adminer | root | example | ALL |
| mariadb | adminer | foo | foo | foo |
At first login update the default password.
https://influxdb.localhost , https://grafana.localhost
| Target access | Subdomain | Default Username | Default Password | Database |
|---|---|---|---|---|
| grafana | grafana | admin | admin | ALL |
At first start, InfluxDB will request to set up an initial user.
https://portainer.localhost
At first start, Portainer will request to set up an initial administrator.
| Target access | Subdomain | Default Username | Default Password |
|---|---|---|---|
| traefik | traefik | admin | admin |
You will find instructions in file .env to change user and password.
| Protocol | Binding | Port | Default Username | Default Password | Encryption(tls) |
|---|---|---|---|---|---|
| mqtt | localhost | 1883 | No | ||
| mqtt | 0.0.0.0 | 8883 | admin | admin | Yes |
| websocket | localhost | 8083 | No | ||
| websocket | 0.0.0.0 | 8091 | admin | admin | Yes |
Useful links:
How to add, delete users and set password
Mosquitto.org configuration manual
Requires Docker compose > 2.27 (check in terminal: docker compose version)