Docker chirpstack AS can't find mosquitto

Following method: https://www.chirpstack.io/guides/docker-compose/
it seems mosquitto does not resolve

by way of example: redis hostname can be found…

/etc/chirpstack-application-server # nslookup mosquitto

Server: 127.0.0.11

Address: 127.0.0.11:53

** server can’t find mosquitto: NXDOMAIN

** server can’t find mosquitto: NXDOMAIN

/etc/chirpstack-application-server # vi chirpstack-application-server.toml

/etc/chirpstack-application-server # nslookup redis

Server: 127.0.0.11

Address: 127.0.0.11:53

Non-authoritative answer:

Non-authoritative answer:

Name: redis

Address: 172.19.0.6

Should the docker-compose.yml include a network?

What does the log say in the mosquitto container? You can type "docker logs -f " followed by the name of the mosquitto container. Do you see incoming requests?

Can you try to connect to “mosquitto:53” instead of “127.0.0.11:53”?

Reminder: The host and port of mosquitto Service in the docker compose file must match the one defined in the .toml file in your AS Config.

It’s also possible that you are trying to connect to the host port instead of the internal port of the container.

P.s. docker compose creates a network automaticaly with all services defined in the .yaml already connected to it.

Hope this helps :slight_smile:

In the mosquitto container I managed to get the IP address using in ifconfig.
Then in chirpstack-application-server.toml [and chirpstack-network-server.toml] I use the ipaddress instead of “mosquitto
Then I don’t get any errors…