---
title: Node-RED
url: 'https://niklas-stephan.de/en/wiki/self-hosted/node-red'
markdown: 'https://niklas-stephan.de/en/wiki/self-hosted/node-red.md'
lang: en
date: '2026-03-20'
description: 'Node-RED No-, low- or all-code process automation. https://www.youtube.com/watch?v=ksGeUD26Mw0&t=4s Installation Volumes mkdir data compose.yml name: nodered services: node-red: container_name: node hostname: node image: nodered/node-red:latest user: "1000:1000" restart: u…'
---

#  Node-RED 

No-, low- or all-code process automation.

<https://www.youtube.com/watch?v=ksGeUD26Mw0&t=4s>

## Installation

### Volumes

```bash
mkdir data
```

### compose.yml

```yaml
<span class="hljs-attr">name:</span> <span class="hljs-string">nodered</span>
<span class="hljs-attr">services:</span>
  <span class="hljs-attr">node-red:</span>
    <span class="hljs-attr">container_name:</span> <span class="hljs-string">node</span>
    <span class="hljs-attr">hostname:</span> <span class="hljs-string">node</span>
    <span class="hljs-attr">image:</span> <span class="hljs-string">nodered/node-red:latest</span>
    <span class="hljs-attr">user:</span> <span class="hljs-string">"1000:1000"</span>
    <span class="hljs-attr">restart:</span> <span class="hljs-string">unless-stopped</span>
    <span class="hljs-attr">environment:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">TZ=Europe/Berlin</span>
    <span class="hljs-attr">networks:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">node-red-net</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">caddy</span>
    <span class="hljs-attr">volumes:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">./data:/data</span>

<span class="hljs-attr">volumes:</span>
  <span class="hljs-attr">node-red-data:</span>

<span class="hljs-attr">networks:</span>
  <span class="hljs-attr">node-red-net:</span>
  <span class="hljs-attr">caddy:</span>
    <span class="hljs-attr">external:</span> <span class="hljs-literal">true</span>
```

### Reverse proxy

For Caddy:

```caddyfile
node.handtrixxx.com {
    reverse_proxy node:1880
}
```

### Password

By default Node-RED runs unprotected, which of course does not work if we want to operate it in our private cloud. The password must be entered as a hash value into the `settings.js` file in the "data" volume.

We generate this from the host with the command:

```bash
docker <span class="hljs-built_in">exec</span> -i node node-red admin <span class="hljs-built_in">hash</span>-pw
```

We are then prompted to enter the password and receive the hash value for it.

Now we comment out the corresponding entry in `settings.js` and set it as follows:

```javascript
    adminAuth: {
        <span class="hljs-attr">type</span>: <span class="hljs-string">"credentials"</span>,
        <span class="hljs-attr">users</span>: [{
            <span class="hljs-attr">username</span>: <span class="hljs-string">"WUNSCHNAME"</span>,
            <span class="hljs-attr">password</span>: <span class="hljs-string">"HASHWERT"</span>,
            <span class="hljs-attr">permissions</span>: <span class="hljs-string">"*"</span>
        }]
    },
```

After saving, we restart the container once more so that these settings take effect.

## Sources / links

- <https://nodered.org>

 self-hostedautomationnode-redhomelab

---

## Navigation

- Parent: [Self-hosted](https://niklas-stephan.de/en/wiki/self-hosted.md)
- Previous: [ncms – Node-RED flat-file CMS](https://niklas-stephan.de/en/wiki/self-hosted/ncms.md)
- Next: [Ollama](https://niklas-stephan.de/en/wiki/self-hosted/ollama.md)
