Deploy Node-RED

nodered low-code flow automation: APIs, IoT, MQTT. Login on, flows saved.

Deploy Node-RED

Just deployed

/data

Deploy and Host Node-RED on Railway

Deploy on Railway

Node-RED is a low-code tool for wiring together APIs, devices and online services. You build flows in a browser editor by connecting nodes, and they run on the server around the clock. This template runs Node-RED 5 with the editor behind a login from the first start, and your flows and installed nodes kept on a volume.

About Hosting Node-RED

One service, one volume. The image is the official nodered/node-red image with a small Railway layer on top: it hands the volume to Node-RED's user, turns the editor login on from two variables, and answers Railway's healthcheck. Everything Node-RED writes lives in /data on the volume: flows, credentials, the key that encrypts them, and nodes you install from the palette. It idles at about 80 MB of memory, and it ran on a 0.5 GB service through installing the dashboard, Telegram and email nodes.

Common Use Cases

  • Glue between services: receive a webhook, reshape the data, call another API
  • Home and IoT automation over MQTT, HTTP and WebSockets
  • Scheduled jobs and alerts: poll something, send a Telegram, Slack or email message
  • Small dashboards and internal tools with the dashboard nodes
  • A visual backend for bots and prototypes running in the same Railway project

Dependencies for Node-RED Hosting

  • None. It is a single service with its own storage.

Deployment Dependencies

Implementation Details

First use: open your Railway domain and sign in with NODE_RED_USERNAME (default admin) and the generated NODE_RED_PASSWORD, both on the service's Variables tab.

Variables:

VariableWhat it does
NODE_RED_USERNAME, NODE_RED_PASSWORDThe editor login. Change them and redeploy to change the login.
HTTP_NODE_USERNAME, HTTP_NODE_PASSWORDOptional. Set both to put a login on everything your flows serve over HTTP (http-in endpoints, dashboards).
TZTime zone for scheduled nodes, for example Europe/Berlin.
NODE_RED_ENABLE_SAFE_MODEtrue starts Node-RED without running the flows, so you can fix a flow that crashes it.
NODE_RED_ENABLE_PROJECTStrue turns on the Projects feature (flows in Git).

Notes and limits:

  • Endpoints that your flows create with http-in nodes are public unless you set the HTTP_NODE_ pair. Webhooks from other services can't sign in, so leave it off for those and check a secret inside the flow instead.
  • From another service in the same project, reach Node-RED at http://node-red.railway.internal:1880.
  • Only HTTP and WebSocket traffic comes in through the Railway domain. For a raw TCP listener such as an MQTT broker node, add a TCP proxy to the service. Railway does not carry inbound UDP.
  • Node-RED encrypts stored credentials with a key it makes on first start and keeps on the volume, so the log's warning about a system-generated key is expected. If you delete the volume, the flows and that key go with it; export your flows first.
  • For settings the variables don't cover, put a settings.local.js in /data that exports an object. It is merged over the template's settings at start.
  • If you clear NODE_RED_PASSWORD, the server makes a temporary password on each start and prints it in the deploy log. The editor is never open.
  • On a service of 2 GB or less, Node's heap is capped at 60% of the memory limit. Set NODE_OPTIONS yourself to change that.

Why Deploy Node-RED on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Node-RED on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
121
View Template
Evolution API with n8n
Automate WhatsApp workflows with Evolution API, n8n, and Postgres.

codestorm
114
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
866