Node-RED
From Leo's Notes
This page was last edited on 3 May 2020, at 20:39.
Node-RED is a web-based flow-based development tool for visual programming APIs, hardware devices, and online services.
It was originally developed by IBM butt was made open source under the Apache License 2.0 in 2016.
Installation
The simplest way to get started is to use the Node-RED docker image. I use the following docker-compose.yml configuration with docker-compose to get started.
version: '3.3'
services:
nodered:
image: nodered/node-red-docker:latest
labels:
- "traefik.enable=true"
- "traefik.port=1880"
- "traefik.docker.network=traefik"
- "traefik.frontend.rule=Host:nodered.example.com"
- "traefik.frontend.redirect.entryPoint=https"
- "traefik.frontend.auth.forward.address=http://auth/index.php"
networks:
- traefik
expose:
- "1880"
restart: always
volumes:
- /var/volumes/nodered/data:/data
networks:
traefik:
external:
name: traefik
Usage
Flows define what Node-RED will do when a certain event happens.