Dear All,
I'm trying to set up an eclipse-mosquitto server in docker behind Traefik and ran into problem. Reading through the posts here and elsewhere I can see that I'm not the only one with this issue. However, none of the solutions proposed works for me.
Here is my setup: traefik.yaml:
In the dashboard the router/service seem to be working, but in the logs there is nothing about any attempted connection or any other error.
If I remove the network definition from docker-compose.yml (and add the ports), it works correctly, so the mosquitto part is correct.
Any idea what I may have missed? Thanks in advance for any help!!!
@bluepuma77 Thanks for sticking with me on this!!!
ok, I hear you, and I understand your reasoning. But then let me rephrase my aim:
I have been running an MQTT server for the past several years with both SSL protected (port 8883) and unprotected (port 1883) communications with no issues at all. Now that I am moving all my infrastructure behind Traefik, this is the last service to go. Ideally, I would like to do it in a way that it requires NO adjustment on the clients' side as I have many, in different countries...
So I was thinking I would still need 2 channels of comms, one encrypted, one plain. Since the encryption is already set up on the mosquitto server, I thought I would just forward Traefik's 1883 and 8883 ports to the mosquitto server's respective ports. As a first step, I tried this (forwarding only the basic, unencrypted traffic:
But it doesn't work. Even this basic use case fails. I don't get it.. I get no errors in any of the logs, Traefik just doesn't let any connection through (I know because I don't get anything in mosquitto's log)
AAAAAaaaaaaaaaaaaaa! The port.... I forgot it.... Can't believe I wasted 2 days on this....
The simple (unencrypted) mqtt connection is now working. I am now moving onto the rest of the mqtt migration.