38 lines
996 B
YAML
38 lines
996 B
YAML
################################################################################
|
|
# Node-RED Stack or Compose
|
|
################################################################################
|
|
# docker stack deploy node-red --compose-file docker-compose-node-red.yml
|
|
# docker-compose -f docker-compose-node-red.yml -p myNoderedProject up
|
|
################################################################################
|
|
version: "3.5"
|
|
|
|
services:
|
|
node-red:
|
|
image: nodered/node-red:1.2.8
|
|
hostname: docker02
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == docker02
|
|
environment:
|
|
- TZ=Europe/Amsterdam
|
|
ports:
|
|
- "1880:1880"
|
|
networks:
|
|
- node-red-net
|
|
volumes:
|
|
- nodered-data:/data
|
|
|
|
volumes:
|
|
nodered-data:
|
|
driver: local
|
|
driver_opts:
|
|
type: "nfs"
|
|
o: "nfsvers=4,addr=192.168.10.4,rw"
|
|
device: ":/volume1/Docker/docker/nodered"
|
|
|
|
networks:
|
|
node-red-net:
|