2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01: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

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