---
title: "Deploy Node-RED Flow Automation"
description: "Node-RED with a generated login; flows and palette nodes kept on a volume"
category: "Automation"
url: https://railway.com/deploy/node-red-flow-automation
---

# Deploy Node-RED Flow Automation

Node-RED with a generated login; flows and palette nodes kept on a volume

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

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

- **Creator:** Anton Orel's Projects
- **Category:** Automation
- **Total deploys:** 2

## Template content

### Node-RED

- **Image:** nodered/node-red:5.0.10@sha256:3622786c15b6f57f61bf1d0ece59d06a18b742c5c8955f588d189b6bee8dc97d
- **Start command:** `/bin/sh -ec 'test -n "$NODE_RED_SETTINGS_JS" || { echo "NODE_RED_SETTINGS_JS is empty" >&2; exit 64; }; printf "%s\n" "$NODE_RED_SETTINGS_JS" >/tmp/railway-settings.js; grep -q adminAuth /tmp/railway-settings.js || { echo "NODE_RED_SETTINGS_JS must configure adminAuth" >&2; exit 64; }; rm -rf /tmp/node-red-secrets; mkdir -m 700 /tmp/node-red-secrets; printf "%s" "${NODE_RED_PASSWORD:-}" >/tmp/node-red-secrets/password; printf "%s" "${NODE_RED_CREDENTIAL_SECRET:-}" >/tmp/node-red-secrets/credential-secret; chmod 600 /tmp/node-red-secrets/password /tmp/node-red-secrets/credential-secret; unset NODE_RED_PASSWORD NODE_RED_CREDENTIAL_SECRET; cd /usr/src/node-red; run="export HOME=/usr/src/node-red; exec node node_modules/node-red/red.js --userDir /data --settings /tmp/railway-settings.js"; if [ "$(id -u)" = 0 ]; then chown node-red:node-red /data; chown -R node-red:node-red /tmp/node-red-secrets; exec su -p -s /bin/sh node-red -c "$run"; fi; eval "$run"'`
- **Health check:** /auth/login
- **Public domain:** Yes

## Documentation

# Deploy and Host Node-RED Flow Automation

Node-RED is a low-code, flow-based tool for wiring together APIs, devices and online services. This template runs the official Node-RED 5.0.10 image with a generated editor login, an encrypted credential store and a volume that keeps your flows and installed nodes.

## About Hosting Node-RED Flow Automation

The template deploys one Node-RED service with a 5,000 MB volume at `/data`. Sign in as `admin` with the generated `NODE_RED_PASSWORD` from the service's Variables tab. Node-RED's own login protects the editor and the whole admin API; endpoints you build with HTTP In nodes stay reachable for webhooks. Flows, encrypted flow credentials and nodes you install from the palette are written to the volume, so they survive restarts and redeploys.

## Why Deploy Node-RED Flow Automation on Railway

Railway gives the editor HTTPS on a public domain, generates the login and credential key, and keeps `/data` on a persistent volume. The service starts as root only to take ownership of the volume, then runs Node-RED as its unprivileged user. The image is pinned by digest, so every deploy runs the same build.

## Common Use Cases

- Receive webhooks and forward them to chat, email or a database.
- Poll APIs on a schedule and transform or store the results.
- Glue together home automation, MQTT devices and cloud services.
- Prototype integrations visually before writing code.

## Dependencies for Node-RED Flow Automation Hosting

- Outbound internet access when installing palette nodes from npm.
- Any external services your flows call, such as MQTT brokers or databases.

### Deployment Dependencies

- [Node-RED](https://nodered.org)
- [Node-RED source](https://github.com/node-red/node-red)
- [Official Node-RED Docker image](https://github.com/node-red/node-red-docker)


## 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-flow-automation
