1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:09 +02:00

update node-red

This commit is contained in:
kev 2019-03-13 13:38:16 +08:00
parent c6db9ccb64
commit 7a1876e3f0
5 changed files with 11 additions and 11 deletions

View File

@ -24,9 +24,9 @@ RUN set -xe \
python3-dev \
&& rm -rf /tmp/npm-*
WORKDIR /root/.node-red
VOLUME /root/.node-red
WORKDIR /data
VOLUME /data
EXPOSE 1880
CMD ["node-red"]
CMD ["node-red", "--userDir", "/data"]

View File

@ -13,7 +13,7 @@ services in new and interesting ways.
```
~/fig/node-red/
├── docker-compose.yml
└── node-red/
└── data/
├── flows_cred.json
├── flows.json
├── lib/
@ -31,7 +31,7 @@ node-red:
ports:
- "1880:1880"
volumes:
- ./data:/root/.node-red
- ./data:/data
restart: always
```
@ -73,7 +73,7 @@ $ docker-compose up -d
$ docker-compose exec node-red node-red-admin hash-pw
$ vi data/settings.js
$ docker-compose exec node-red bash
>>> cd /root/.node-red
>>> cd /data
>>> apk add -U build-base
>>> npm install node-red-node-irc
>>> npm install node-red-node-daemon

View File

@ -24,9 +24,9 @@ RUN set -xe \
python3-dev \
&& rm -rf /tmp/npm-*
WORKDIR /root/.node-red
VOLUME /root/.node-red
WORKDIR /data
VOLUME /data
EXPOSE 1880
CMD ["node-red"]
CMD ["node-red", "--userDir", "/data"]

View File

@ -3,7 +3,7 @@ node-red:
ports:
- "1880:1880"
volumes:
- ./data:/root/.node-red
- ./data:/data
- /dev/input:/dev/input
privileged: yes
restart: always

View File

@ -3,7 +3,7 @@ node-red:
ports:
- "1880:1880"
volumes:
- ./data:/root/.node-red
- ./data:/data
- /dev/input:/dev/input
privileged: yes
restart: always