Gateway Bridge cannot connect or see MQTT broker

I am running a Chirpstack Gateway Bridge by means of a Docker image. I have an MQTT broker successfully running. I have tried everything to get the bridge to see the broker, but nothing works. I have tried and with and without ports setting in the YAML configuration. Nothing works. I am shipwrecked and need anyone’s advice to proceed.

[+] Running 1/0
 - Container bridge-lora-bridge-1  Created                                                                                                                            0.0s
Attaching to bridge-lora-bridge-1
bridge-lora-bridge-1  | INFO[0000] starting ChirpStack Gateway Bridge            docs="" version=
bridge-lora-bridge-1  | INFO[0000] backend/semtechudp: starting gateway udp listener  addr=""
bridge-lora-bridge-1  | ERRO[0000] [client]   dial tcp connect: connection refused  module=mqtt
bridge-lora-bridge-1  | WARN[0000] [client]   failed to connect to broker, trying next  module=mqtt
bridge-lora-bridge-1  | ERRO[0000] [client]   Failed to connect to a broker      module=mqtt
bridge-lora-bridge-1  | FATA[0000] network Error : dial tcp connect: connection refused
bridge-lora-bridge-1 exited with code 1

My broker is running fine.

1661216750: Saving in-memory database to C:\BROKER\mosquitto\data\mosquitto.db.
1661216753: mosquitto version 2.0.15 starting
1661216753: Config loaded from .\config\mosquitto.conf.
1661216753: Loading plugin: C:\BROKER\mosquitto\mosquitto_dynamic_security.dll
1661216753: Opening ipv4 listen socket on port 1883.
1661216753: mosquitto version 2.0.15 running

Proof that the broker is listening on port 1883

PS C:\BRIDGE> netstat -an

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP                LISTENING
 TCP              LISTENING   (  <---- THERE )

My mosquitto.conf file is

listener 1883
allow_anonymous true
persistence true
persistence_location C:\BROKER\mosquitto\data

plugin  C:\BROKER\mosquitto\mosquitto_dynamic_security.dll
plugin_opt_config_file C:\BROKER\mosquitto\data\dynamic-security.json

log_dest file C:\BROKER\mosquitto\log\log.txt
log_type error
log_type warning
log_type notice
log_type information
connection_messages true

The docker-compose.yml follow. As I said before, I have tried this both with and without published ports.

version: "3.6"
    image: chirpstack/chirpstack-gateway-bridge
    stdin_open: true # docker run -i
    tty: true  # docker run -t
    privileged: true
      - C:\BRIDGE\.config:/etc/chirpstack-gateway-bridge/
      - 1883:1883

Have you seen the ChirpStack Docker example?

I have tried and

If you are using Docker (Compose), you must use the name of the service as hostname. Again see the above example repo :slight_smile: