# Self-host Node-RED

> A flow-based visual editor for wiring together hardware, APIs, and online services.

- Page: https://levelrail.com/templates/node-red/
- JSON: https://levelrail.com/templates/node-red.json
- Category: Automation
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/node-red/node-red
- Upstream docs: https://nodered.org/docs/getting-started/docker

## Requirements
- Memory: about 256 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 4.1.15-22

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| nodered | nodered/node-red | 4.1.15-22 | 1880 | nodered_data -> /data |

## Deploy

### CLI

```bash
levelrail-cli templates deploy node-red --name my-node-red
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/node-red/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Node-RED on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Node-RED, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image nodered/node-red:4.1.15-22 is what you deploy there.

Self-host Node-RED, Node-RED docker compose file, deploy Node-RED on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
