Aller au contenu
Yannick SimonParlons-en

Article · Cloud

Install and configure node-red on synology dsm 6 with docker

Par Yannick Simon · Publié le

Note, November 2026: this guide was written in March 2023 for DSM 6. Since DSM 7.2, Synology has replaced the Docker package with Container Manager, so the screens below may differ.

I had some difficulties when installing node-red on a synology server thanks to docker.

The main problem : the node-red instance does not use any dns server by default.

I managed to map /etc/resolv.conf of the container with a custom resolv.conf, but after that, the container cannot communicate with another container easily.

In my case, I want to use in Node-red another container influxdb by its « influxdb1 » name, but influxdb1 as a hostname was not found by node-red with a mapped /etc/resolv.conf.

I had to re-create a node-red container with the --dns parameter for the command line.
(impossible to update this setting after the container is created)

On a Synology NAS running DSM 6, Docker runs a node-red container created with --dns 8.8.8.8 and --dns 8.8.4.4, so it reaches the internet. It also reaches the influxdb1 container by its name. Its /data volume is a folder on the NAS, holding settings.js and the hashed admin password. The trap: mapping a custom resolv.conf lets the internet work, but influxdb1 is no longer found. The --dns parameters make both work, but they are set at creation: the container must be recreated to change them. NODE-RED ON A SYNOLOGY NAS Docker · DSM 6 Internet DNS 8.8.8.8 · 8.8.4.4 SYNOLOGY NAS · DSM 6 Docker node-red --dns 8.8.8.8 influxdb1 InfluxDB found by name volume /data a NAS folder · settings.js admin password, hashed THE DNS TRAP Mapped resolv.conf internet works, influxdb1 is not found --dns 8.8.8.8 --dns 8.8.4.4 internet and container names both work --dns is set at creation: recreate the container
NODE-RED · DOCKERSYNOLOGY DSM 6

1 - Download Image

2 - Create a "data" folder

3 - Configure the node-red container

DO NOT FORGET THE --dns 8.8.8.8 --dns 8.8.4.4 as parameters !

Protect admin node-red with user/password

Launch a « bash » terminal window

go to /usr/src/node-red/node_modules/node-red-admin/
start node-red-admin with « hash-pw » as a parameter
type your password, note the hashed version 🙂

modify the « settings.js » in the mapped /data folder

Going further

I also maintain Node-RED nodes for energy equipment: node-red-contrib-melcloud for Mitsubishi heat pumps, node-red-contrib-ecoflow for EcoFlow batteries, and node-red-contrib-solaredge-power for SolarEdge inverters.

Working on an industrial IoT project? I design and build them, from the sensors to the cloud: see my offer (in French).

Portrait de Yannick Simon

Yannick Simon, ingénieur Arts et Métiers, ancien DGA et CTO de Rue du Commerce. Il conçoit aujourd’hui des solutions IoT, mobiles, cloud et IA pour l’industrie.