Skip to content

🎈 A tool for wiring together hardware devices, APIs and online services

Notifications You must be signed in to change notification settings

EasyPi/docker-node-red

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

node-red

ARCH IMAGE SIZE
amd64 easypi/node-red ~80 MB
arm64 easypi/node-red ~80 MB
arm/v7 easypi/node-red ~80 MB

Node-RED is a tool for wiring together hardware devices, APIs and online services in new and interesting ways.

directory tree

~/fig/node-red/
β”œβ”€β”€ docker-compose.yml
└── data/
    β”œβ”€β”€ flows_cred.json
    β”œβ”€β”€ flows.json
    β”œβ”€β”€ lib/
    β”‚   └── flows
    └── settings.js

The node-red/data directory will be created after first running.

docker-compose.yml

version: "3.8"
services:
  node-red:
    image: easypi/node-red
    ports:
      - "1880:1880"
    volumes:
      - ./data:/data
      - /dev/input:/dev/input
    privileged: true
    restart: unless-stopped

settings.js

module.exports = {
    adminAuth: {
        type: "credentials",
        users: [{
            username: "admin",
            password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
            permissions: "*"
        }],
        default: {
            permissions: "read"
        }
    },
}

Password hash can be generated by running node-red admin hash-pw https://nodered.org/docs/security

up and running

$ docker-compose up -d

$ docker-compose exec node-red node-red admin hash-pw
>>> Password: ******
... $2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.

$ vi data/settings.js

$ docker-compose exec node-red bash
>>> cd /data
>>> apk add -U build-base
>>> npm install node-red-node-irc
>>> npm install node-red-node-daemon
>>> exit

$ docker-compose restart

Install nodes from node-red-nodes.

About

🎈 A tool for wiring together hardware devices, APIs and online services

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published