I am trying to get Ecowitt@MQTT running on my Docker Mosquitto container. I have gotten as far as receiving a message from the Ecowitt gateway, GW3000, however when the message is passed on to Mosquitto I receive error 2, name not recognized. I have a Python Paho client running for testing and it communicates correctly with Mosquitto. I have tired several configurations for Ecowitt2MQTT the only one that worked partially was with --Nework=Bridge, using port 8085:8085 for conncting to the gateway and 1883 for the Ecowitt2mqtt to Mosquitto.
The Docker Run command for Ecowitt2mqtt:
“”"
docker run -itd --name e2mqtt --net=bridge -p 8085:8085 -e ECOWITT2MQTT_MQTT_BROKER=192.168.1.122 -e ECOWITT2MQTT_MQTT_BROKER=mosquitto -e ECOWITT2MQTT_MQTT_PORT=1883 -e MQTT_USERNAME=XXXXXX -e MQTT_PASSWORD=XXXXXXX -e ECOWITT2MQTT_HASS_DISCOVERY=false -e ECOWITT2MQTT_PORT=8085 -e input-data-format=ecowitt -e ECOWITT2MQTT_DIAGNOSTICS=true bachya/ecowitt2mqtt:latest
“”"
The mosquitto.conf file:
“”"
#listener 1883 socket_domain ipv4
allow_anonymous false
listener 1883 0.0.0.0 socket_domain ipv4
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
password_file /mosquitto/config/password_file
“”"
System Info:
“”"
Ubuntu 24.04 32 GB memory
Everything is installed on this computer
Client: Docker Engine - Community
Version: 29.2.1
API version: 1.53
Mosquitto version 2.1.2
Ecowitt2mqtt (version 2026.01.0)
“”"
Any suggestions are greatly appreciated. I’ve been working with this for several days now. I am fairly new to Docker and brand new to Mosquitto.