|
|
@ -16,7 +16,7 @@ do_install_detail() {
|
|
|
|
IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null)
|
|
|
|
IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null)
|
|
|
|
username=$(uci get nodered.@nodered[0].username 2>/dev/null)
|
|
|
|
username=$(uci get nodered.@nodered[0].username 2>/dev/null)
|
|
|
|
password=$(uci get nodered.@nodered[0].password 2>/dev/null)
|
|
|
|
password=$(uci get nodered.@nodered[0].password 2>/dev/null)
|
|
|
|
|
|
|
|
APP_NAME="nodered"
|
|
|
|
GEN_PASS=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c14; echo)
|
|
|
|
GEN_PASS=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c14; echo)
|
|
|
|
GEN_PASS2=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c14; echo)
|
|
|
|
GEN_PASS2=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c14; echo)
|
|
|
|
|
|
|
|
|
|
|
@ -40,6 +40,7 @@ version: '3.7'
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
nodered:
|
|
|
|
nodered:
|
|
|
|
image: $IMAGE_NAME
|
|
|
|
image: $IMAGE_NAME
|
|
|
|
|
|
|
|
container_name: $APP_NAME
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- ${LAN_IP}:$port:1880
|
|
|
|
- ${LAN_IP}:$port:1880
|
|
|
|