Issue with lifx/docker

Lifx used to work perfectly well on my docker installation of home assistant.

For now I use a single node docker swarm installation, but I wanted to move to a 3 node cluster. Unfortunately I couldn’t get it to work correctly so I had to go back to my previous configuration.

However lifx is not working anymore and I have no idea what could be the problem. I only get “No LIFX devices found on the network.”
Here is my docker-compose:

version: ‘3.7’

configs:
wait-for-it:
file: /srv/gluster/swarm/homeassistant/wait-for-it/wait-for-it.sh

services:
homeassistant:
image: homeassistant/home-assistant:0.84.6
configs:
- source: wait-for-it
target: /wait-for-it.sh
mode: 755
networks:
hostnet: {}
command: [“/wait-for-it.sh”, “192.168.2.18:1883”, “–”, “python”, “-m”, “homeassistant”, “–config”, “/config”]
volumes:
- /srv/gluster/swarm/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: [“CMD”, “curl”, “-f”, “http://localhost:8123”]
interval: 30s
timeout: 10s
retries: 2
start_period: 40s

mosquitto:
image: eclipse-mosquitto
volumes:
- /srv/gluster/swarm/mosquitto/config:/mosquitto/config
- /etc/localtime:/etc/localtime:ro
- /srv/gluster/swarm/mosquitto/data/mosquitto-data:/mosquitto/data
- /srv/gluster/swarm/mosquitto/data/mosquitto-log:/mosquitto/log
ports:
- “1883:1883”
- “9001:9001”

nodered:
image: nodered/node-red-docker:v8
deploy:
labels:
- “traefik.backend=nodered”
- “traefik.frontend.rule=Host:nodered.edzilla.info”
- “traefik.port=1880”
- “traefik.enable=true”
- “traefik.docker.network=webgateway”
- “traefik.default.protocol=http”
networks:
- webgateway
volumes:
- /srv/gluster/swarm/nodered:/data
environment:
- TZ:Europe/Brussels

nginx:
image: nginx:latest
volumes:
- /srv/gluster/swarm/homeassistant/nginx.conf:/etc/nginx/conf.d/reverse-proxy.conf
deploy:
labels:
- “traefik.backend=hassio”
- “traefik.frontend.rule=Host:hassio.edzilla.info”
- “traefik.port=80”
- “traefik.enable=true”
- “traefik.docker.network=webgateway”
- “traefik.default.protocol=http”
networks:
- webgateway

volumes:
mosquitto-data:
mosquitto-log:

networks:
webgateway:
external: true
hostnet:
external: true
name: host

Make sure your network setup allows LIFX messages from UDP port 56700 to a random Home Assistant port.