---
title: "Deploy Node-RED"
description: "nodered low-code flow automation: APIs, IoT, MQTT. Login on, flows saved."
category: "Automation"
url: https://railway.com/deploy/node-red-automation
---

# Deploy Node-RED

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

**[Deploy Node-RED on Railway](https://railway.com/template/node-red-automation)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/node-red-automation/manifest.json

- **Creator:** Two Workspaces
- **Category:** Automation

## Template content

### node-red https://raw.githubusercontent.com/two-workspaces/node-red/main/icon.svg

- **Image:** ghcr.io/two-workspaces/node-red:0b7386b
- **Health check:** /healthcheck
- **Public domain:** Yes

## Documentation

# Deploy and Host Node-RED on Railway

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/new/template/node-red-automation?referralCode=sLjDXb&utm_medium=integration&utm_source=button&utm_campaign=node-red-automation)

[Node-RED](https://nodered.org) 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

- [Node-RED documentation](https://nodered.org/docs/)
- [Node-RED flow library](https://flows.nodered.org), nodes and example flows to install
- [node-red-docker](https://github.com/node-red/node-red-docker), the official image this template builds on

### 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:**

| Variable | What it does |
| --- | --- |
| `NODE_RED_USERNAME`, `NODE_RED_PASSWORD` | The editor login. Change them and redeploy to change the login. |
| `HTTP_NODE_USERNAME`, `HTTP_NODE_PASSWORD` | Optional. Set both to put a login on everything your flows serve over HTTP (http-in endpoints, dashboards). |
| `TZ` | Time zone for scheduled nodes, for example `Europe/Berlin`. |
| `NODE_RED_ENABLE_SAFE_MODE` | `true` starts Node-RED without running the flows, so you can fix a flow that crashes it. |
| `NODE_RED_ENABLE_PROJECTS` | `true` 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.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/node-red-automation
