MirrorNest
← Tutte le guide

Node-RED

Node-RED is a flow-based visual programming tool for wiring together hardware, APIs, and online services, with an official Docker image maintained by the project.

Sistema: Any Docker hostAutomationSito ufficiale ↗Documentazione ufficiale ↗
Questa guida è redatta a partire dalla documentazione ufficiale di Node-RED, linkata sopra — verifica sempre lì i nomi esatti di pacchetti/versioni prima di eseguire questi comandi su un server di produzione, poiché le versioni della distribuzione e del progetto cambiano nel tempo.
  1. 1Run the official image

    This maps the editor to port 1880 and stores your flows and settings in the node_red_data named volume so they survive container restarts.

    docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red:latest
  2. 2Open the editor

    Browse to http://<host-ip>:1880 to access the Node-RED flow editor.

  3. 3Add extra nodes (optional)

    Node-RED's official images are built on Node.js Alpine to stay small; if a community node needs native compilation, build your own image FROM nodered/node-red and install it there, as documented in Node-RED's Docker docs.

  4. 4Use the minimal variant (optional)

    A smaller image tag is available for deployments that don't need the extra bundled dependencies.

    docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red:latest-minimal