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:
parent
c6db9ccb64
commit
7a1876e3f0
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
|
@ -3,7 +3,7 @@ node-red:
|
||||
ports:
|
||||
- "1880:1880"
|
||||
volumes:
|
||||
- ./data:/root/.node-red
|
||||
- ./data:/data
|
||||
- /dev/input:/dev/input
|
||||
privileged: yes
|
||||
restart: always
|
||||
|
@ -3,7 +3,7 @@ node-red:
|
||||
ports:
|
||||
- "1880:1880"
|
||||
volumes:
|
||||
- ./data:/root/.node-red
|
||||
- ./data:/data
|
||||
- /dev/input:/dev/input
|
||||
privileged: yes
|
||||
restart: always
|
||||
|
Loading…
x
Reference in New Issue
Block a user