1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-06-04 23:17:31 +02:00

update node-red

This commit is contained in:
kev 2019-03-16 16:37:35 +08:00
parent 0edda17722
commit 17f8b8927a

View File

@ -40,12 +40,6 @@ node-red:
```javascript ```javascript
module.exports = { module.exports = {
//...
flowFile: 'flows.json',
//...
adminAuth: { adminAuth: {
type: "credentials", type: "credentials",
users: [{ users: [{
@ -58,26 +52,30 @@ module.exports = {
} }
}, },
//...
} }
``` ```
> Password hash can be generated by running `node-red-admin hash-pw`. > Password hash can be generated by running `node-red-admin hash-pw`
> <https://nodered.org/docs/security>
## up and running ## up and running
``` ```bash
$ cd ~/fig/node-red/
$ docker-compose up -d $ docker-compose up -d
$ docker-compose exec node-red node-red-admin hash-pw $ docker-compose exec node-red node-red-admin hash-pw
>>> Password: ******
... $2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.
$ vi data/settings.js $ vi data/settings.js
$ docker-compose exec node-red bash $ docker-compose exec node-red bash
>>> cd /data >>> cd /data
>>> apk add -U build-base >>> apk add -U build-base
>>> npm install node-red-node-irc >>> npm install node-red-node-irc
>>> npm install node-red-node-daemon >>> npm install node-red-node-daemon
>>> exit >>> exit
$ docker-compose restart $ docker-compose restart
``` ```