Node-RED — a low-code, flow-based programming tool for wiring together APIs, devices, and online services; popular for IoT and automation. Deployed as a host-networked Nomad service with a persistent volume for flows. Pairs with the mosquitto pack for MQTT.
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "node-red"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The Node-RED container image. Pin a tag in production.
image = "nodered/node-red:latest"
# Host port for the Node-RED editor / dashboard (PORT env).
port = 1880
# Container timezone (TZ), e.g. Europe/Bratislava.
timezone = "UTC"
# Docker named volume for /data (flows, credentials, installed nodes, settings). A prestart task chowns it to uid 1000 (the node-red user). Back it up.
data_volume = "node_red_data"
# Placement constraints — pin to one node so the local volume stays put. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources.
resources = {
cpu = 400
memory = 256
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "node-red" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "nodered/node-red:latest" | The Node-RED container image. Pin a tag in production. |
| port | number | 1880 | Host port for the Node-RED editor / dashboard (PORT env). |
| timezone | string | "UTC" | Container timezone (TZ), e.g. Europe/Bratislava. |
| data_volume | string | "node_red_data" | Docker named volume for /data (flows, credentials, installed nodes, settings). A prestart task chowns it to uid 1000 (the node-red user). Back it up. |
| constraints | list | [] | Placement constraints — pin to one node so the local volume stays put. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 400
memory = 256
} | The task resources. |
No variables match.
Node-RED — a low-code, flow-based programming tool for wiring
together hardware devices, APIs, and online services in a browser editor. A staple for IoT
and home/ops automation. Host-networked Nomad service with a persistent volume; pairs with
the mosquitto (MQTT) and influxdb packs.
nomad-pack registry add nomploy github.com/Nomploy/nomad-packs
nomad-pack run node-red --registry nomploy
In nomploy: create a Compose service, type Nomad Pack, pack node-red, custom registry
github.com/Nomploy/nomad-packs, then Deploy. Open http://<node-ip>:1880.
| Variable | Default | Notes |
|---|---|---|
image |
nodered/node-red:latest |
Pin a tag in production. |
port |
1880 |
Editor/dashboard (PORT). |
timezone |
UTC |
e.g. Europe/Bratislava. |
data_volume |
node_red_data |
Flows, credentials, installed nodes. Back it up. |
constraints |
[] |
Pin to a node so the local volume stays put. |
resources |
cpu 400 / mem 256 |
Raise for heavy flows. |
count is fixed to 1 (local volume). A prestart task chowns the volume to
uid 1000 (the node-red user). Pin with constraints.adminAuth in the volume's settings.js.