What is Node-RED?
Node-RED is the OpenJS Foundation’s flow programming tool: wire webhooks, APIs, MQTT, schedules, and devices together visually, with thousands of community nodes for everything from Modbus to Telegram. Two decades of IoT and integration muscle live in its palette.
This template fixes the deployment footgun upstream leaves open: a public Node-RED editor without auth is arbitrary code execution. The wrapper seeds bcrypt adminAuth into settings.js on first boot and refuses to start without your hash - secure by construction, not by checklist.
What you get
- Visual flow editor with thousands of community nodes
- Webhooks, MQTT, HTTP, schedules, function nodes (JS)
- Auth ENFORCED: bcrypt admin seeded at boot, or no boot
- Flows, credentials, and installed nodes persist on one volume
- Apache-2.0, OpenJS-governed
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
node-red | flow editor + runtime (:5000) | yes (enforced auth) |
Before you deploy
NODERED_PASSWORD_HASHbcrypt (one docker run command in .env.example)
Sizing and billing
Light by default; heavy flows and chatty MQTT raise it. Install nodes from the palette - they persist on the volume.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 1.95 GiB of volumes cost $0.15 per GiB a month ($0.29/mo) for as long as they exist. One workspace can use both. See pricing
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Why does this template enforce auth when upstream does not?
Because the editor executes arbitrary JavaScript by design - on a public domain, an open editor is remote code execution within minutes of being indexed. The wrapper exits loudly without a bcrypt hash; the inconvenience is the feature.
Node-RED or n8n?
Node-RED for device/MQTT/protocol wiring and the engineering-automation crowd; n8n (in this catalogue, queue mode) for SaaS integrations with credential management and a marketplace of app nodes. Genuinely different ecosystems - pick by what you are wiring.
Can flows receive webhooks from the internet?
Yes - HTTP-in nodes listen on your domain alongside the editor. Secure the endpoints your flows expose (the enforced auth covers the editor, not your custom routes - add header checks in flows).