OwnTracks with two MQTT brokers

I (surge919) successfully tied in OwnTracks to Home Assistant and SmartThings while using authentication for external access. The MQTT bridge doesn’t support authentication so I set up 2 MQTT instances.

Here are the steps I performed. Hopefully it saves someone else some time.

It seems to be working pretty well but if anyone sees something incorrect in my configuration, please let me know. This is my first real interaction with MQTT.

Here’s a summary of my setup:

Two Docker instances for MQTT

1 for internal use (the MQTT bridge for SmartThings - no authentication)

1 for external use (for OwnTracks - with authentication)

All Docker configuration files are on my NAS so the Docker containers can be destroyed without affecting my actual configuration files.

Docker setup for the mosquitto internal instance. No authentication for use with the MQTT bridge.