Setup an mqtt broker on home assistant docker

Hi,
I am trying to setup a MQTT broker on my home assistant docker.
I used to following setup:

sudo docker run -itd -p 1883:1883 -p 9001:9001 \
--name=mqtt \
--restart=always \
--net=host \
-v /mosquitto/config:/mosquitto/config \
-v /mosquitto/data:/mosquitto/data \
-v /mosquitto/log:/mosquitto/log \
eclipse-mosquitto

currently the home assitant MQTT integration connected successfully to the broker but my other devices (in my LAN) could not login , and I don’t know why…
Could you help me please?

1 Like

I found the issue , this line was missing in mosquitto.conf

# Listen on all interfaces 
listener 1883

1 Like