Skip to content

How to send data from zwavejs2mqtt inside a docker container to a Mosquitto server? #1244

Discussion options

You must be logged in to vote

Hummm that's not the way to do it. With -p 1883:1883 you are mapping z2m container port to your local port 1883 but that is actually used by mosquitto. You have two alternatives, the first one is to map the container network to your local network the second one is to use a container also for mosquitto so you can setup the communication between z2m and mosquitto containers (using a docker compose file).

This example uses a docker compose file to map containers network to local net: https://tewarid.github.io/2019/05/24/docker-compose-to-run-node-red-and-mosquitto.html#:~:text=Mosquitto%20can%20be%20accessed%20at%20port%201883%20on%20the%20host%20network.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ZeroGravityByUs
Comment options

Answer selected by ZeroGravityByUs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants