Skip to content

Run in docker standalone

Volker Hänsel edited this page Oct 6, 2023 · 2 revisions

example to create a docker container named 'my_tuya_mqtt_client' and publish the web site under 'http://localhost:9999'

docker run --rm -d -v /tuya_data:/app/DataDir -p 9999:80 -p 6667:6667/UDP -p 6666:6666/UDP --name my_tuya_mqtt_client volkerhaensel/tuya_mqtt.net

example when using the host-mode networking

docker run --rm -d -v /tuya_data:/app/DataDir --network host -e ASPNETCORE_URLS=http://*:9999 --name my_tuya_mqtt_client volkerhaensel/tuya_mqtt.net

  • The folder /app/DataDir contains the service settings and shall be made persistent (the folde name is case sensitive).

  • UDP ports 6667 and 6667 are required to receive the LAN broadcast messages from the TUYA devices.

    if the 'Scanned Network Devices' remain empty, the container may not receive broadcast messages. Try to put the container to the host network then.