Railway

Deploy node-red

Low-code flow programming for wiring hardware, APIs, and services.

Deploy node-red

Just deployed

Deploy and Host

Deploy on Railway

Canonical code: node-red-2 — deploy URL: https://railway.com/new/template/node-red-2

OG Image

Node-RED is a low-code, flow-based programming tool for wiring together hardware devices, APIs, and online services. Deploy it on Railway in minutes to start building automations visually.

About Hosting

Node-RED runs as a single container with a persistent Railway volume at /data for flows, settings, and credentials. Railway provides the compute, TLS at the edge, and a public URL. The service restarts automatically on failures. No external database is required for basic usage — everything runs in one container.

Why Deploy

  • Visual programming — Build automations by connecting nodes in a browser-based flow editor. No code required.
  • 5,000+ community nodes — Extend with nodes for databases, IoT protocols, AI/ML, messaging, and hundreds of APIs.
  • Zero external dependencies — Single container with a persistent volume. No database needed for basic flows.
  • REST API & webhooks — Trigger flows from HTTP requests, schedule them with cron, or connect to MQTT/WebSocket.
  • Dashboard UI — Build live dashboards and UIs with the built-in dashboard nodes.
  • Enterprise-ready — Used by Hitachi, Siemens, and thousands of developers worldwide.

Common Use Cases

  • IoT automation — Connect sensors, actuators, and devices with MQTT, Modbus, OPC-UA, and GPIO.
  • API orchestration — Chain HTTP requests, transform data, and integrate multiple services in a single flow.
  • Smart home — Automate lights, thermostats, and devices with Home Assistant, Philips Hue, and Zigbee.
  • Data pipelines — Ingest, transform, and route data between databases, message queues, and cloud services.
  • Chatbots & alerts — Build Telegram/Slack bots, send email alerts, and trigger notifications from any event.

Dependencies for Node-RED

Deployment Dependencies

Node-RED requires no external dependencies on Railway. It runs as a standalone Node.js server with a persistent Railway volume at /data for flow storage. No database or cache is required for basic usage.


Features

  • Flow-based editor — Drag, drop, and wire nodes in the browser
  • 5,000+ community nodes — MQTT, HTTP, database connectors, AI, dashboards, and more
  • One-click deploy — Pre-configured with Railway volume for persistent flows
  • Built-in healthcheck — Monitored by Railway for automatic restarts
  • Pinned version — Node-RED v5.0.0, reproducible builds

Quick Start

Click Deploy above, then open your Railway URL to access the flow editor. All flows are saved to the persistent volume at /data.

Environment Variables

VariableRequiredDefaultDescription
PORTNo1880Container port (Railway auto-sets)
FLOWSNoflows.jsonFlow file to load from /data
CREDENTIAL_SECRETNoEncryption key for stored credentials
NODE_RED_ENABLE_PROJECTSNofalseEnable Git-backed projects
NODE_RED_ENABLE_SAFE_MODENofalseStart without running flows

Local Development

git clone https://github.com/INAPP-Mobile/railway-node-red && cd railway-node-red
cp .env.example .env && $EDITOR .env
docker build -t railway-node-red .
docker run -d -p 1880:1880 -v node-red-data:/data --env-file .env railway-node-red

Open http://localhost:1880 in your browser.

Troubleshooting

IssueSolution
Flows lost after redeployConfirm /data volume is mounted in Railway
Port conflictOverride PORT env var — Railway auto-routes
Credentials brokenCREDENTIAL_SECRET was changed; re-enter credentials

License

Node-RED is Apache-2.0 licensed. Template by INAPP-Mobile.


Template Content

More templates in this category

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

jakemerson
115
View Template
Evolution API with n8n
[Jun'26] WhatsApp automation platform using Evolution API, n8n & PostgreSQL

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

Railway Templates
862