Docker Stack / Docker Compose help

Hi i'm trying to install Node-RED in portainer but can't get it to run with host network.
It create its own bridge network.
I need it to run host network to get Bonjour sevice to work.

Here are the stack:

################################################################################

Node-RED Stack or Compose

################################################################################

docker stack deploy node-red --compose-file docker-compose-node-red.yml

docker-compose -f docker-compose-node-red.yml -p myNoderedProject up

################################################################################
version: "3.7"

services:
node-red:
image: nodered/node-red:latest
environment:
- TZ=Europe/Amsterdam
ports:
- "1880:1880"
networks:
- node-red-net
volumes:
- node-red-data:/data

volumes:
node-red-data:

networks:
node-red-net:

Got it to work with help from a guy at facebook.

This was the solution:

version: "3.7"

services:
node-red:
image: nodered/node-red:latest
environment:
- TZ=Europe/Amsterdam
ports:
- "1880:1880"
network_mode: "host"
volumes:
- node-red-data:/data

volumes:
node-red-data:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.