1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:32 +02:00
dockerfiles/nodered
2015-12-04 19:13:13 +08:00
..
arm fix nodered 2015-12-04 17:56:19 +08:00
docker-compose.yml add nodered 2015-12-04 17:49:45 +08:00
Dockerfile fix nodered 2015-12-04 17:56:19 +08:00
README.md update 2015-12-04 19:13:13 +08:00

nodered

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

directory tree

~/fig/nodered/
├── docker-compose.yml
└── node-red/
    ├── flows_cred.json
    ├── flows.json
    ├── lib/
    │   └── flows
    └── settings.js

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

docker-compose.yml

nodered:
  image: vimagick/nodered
  ports:
    - "1880:1880"
  volumes:
    - ./node-red:/root/.node-red
  restart: always

settings.js

module.exports = {

    //...

    flowFile: 'flows.json',

    //...

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

    //...

}

up and running

$ cd ~/fig/nodered/
$ docker-compose up -d
$ vi node-red/settings.js
$ docker-compose restart