Node-red Homebridge

Hello,

I am trying to make homebridge communicate with my node-red container integrated into Gladys, but node-red cannot discover the devices that are in homebridge.

The node-red container needs to be started with network=host mode but it seems to be started in bridge mode.

On my side I think I will use Node-RED on another machine, but for people using Node-RED directly integrated into Gladys, I think it would be good to have this configuration?

What do you think?

Thanks

Could you please look into fixing this?

Why not, actually I wouldn’t mind switching Node-RED to network=host :slight_smile:

Here is the docker-compose.yml that works:

version: "3.8"
services:
  node-red:
    image: nodered/node-red:3.1.15
    restart: always
    environment:
      - TZ=Europe/Paris
    ports:
      - "127.0.0.1:1880:1880"
    network_mode: host
    volumes:
      - ./mnt/node-red/data:/data

For me, it’s mainly the following 2 lines that are important:

ports:
  - "127.0.0.1:1880:1880"
network_mode: host

The 127.0.0.1:1880:1880 entry isolates the container from the outside because I access it from a bastion in app mode (Teleport) and I don’t need to access it from elsewhere :slight_smile:

The most important thing is network_mode: host which allows Homebridge to work in my case.

2 Likes