Docker run command needs port mapping...but closes the connection #959
Replies: 2 comments 3 replies
-
I have no idea what you are trying to do since you posted just screenshots of logs with no details of your actual config, i.e. how are you running ring-mqtt, where is your mqtt broker running, etc. the fact that it's showing connections from 127.0.0.1 already indicates that something is wrong since that should never be the case if you are running ring-mqtt via Docker. Is your broker also in Docker or also running on the host? In your example above it appears you are running mosquitto on the host, in local only mode, but running ring-mqtt in Docker. This is not a valid configuration, unless you also run ring-mqtt using the host network. There should be no reason to map ports in Docker to access the broker. |
Beta Was this translation helpful? Give feedback.
-
I agree that I should not need the port mapping. I am to get just the basics going so that I can understand what is going on with your project. Does the docker container include a broker? Here is my config.json file... "mqtt_url": "mqtt://localhost:1883", |
Beta Was this translation helpful? Give feedback.
-
I was having a problem getting the docker instance to make a connection to my local mosquitto service so I added the "-p 1883:1883" mapping option to the run command. This helped but now I am getting a connect/disconnect msg in the mosquitto logs. Are these any logs on the ring-mqtt side of things that can help me troubleshoot?
Beta Was this translation helpful? Give feedback.
All reactions