Recommended MQTT server deployment for HA Core on Docker?

Sorry if this is a stupid question, but like many, I am a touch confused since the HASSio/Home Asssistant Core changes. Not big deal, happy with the change but all my previous notes aren’t applicable anymore.

I tried to add the MQTT Integration, but it appears it’s just the MQTT client.

The embedded MQTT broker is now deprecated.

I’m happy to run another docker instance and deploy a full blown mosquito deployment but before I went this route I thought I would ask what the official recommended ‘embedded’ MQTT server deployment was?

You don’t need another docker.

apt install mosquitto

I’m not quite sure that is correct. Is the official HA Core Docker image shipping with mosquito now?

No it isn’t.

But you are obviously running core IN docker ON an operating stystem Install mosquitto on the operating system. My post did assume a debian-like OS, but all majod distros package mosquitto.

I run a mosquitto docker alongside my HA Core docker. I had issues with the embedded broker many releases ago and switched to the external broker and haven’t had an issue since. I can’t say it’s the “recommended” way but it’s the same if not better than the embedded broker.

Edit: I run it all in docker on my NAS because I don’t want to install it direct on my NAS.

There is no need for another docker though. Although it is equally valid as my suggestion.

Mosquitto has always been recommended over the internal broker. To the point where I have never seen anyone recommend internal.

Cheers! Sorry I run and scale all my apps in docker so installing mosquitto on my hypervisor althought it will work, is not my preferred approach. No stress though, the docker mosquitto install is very simple and lightweight.

Thanks! I went this route. Super easy to run it along side.I was curious on the “official” approach since the deprecation of the embedded client.

Yep glad it works for you. Didn’t realise you had a hypervisor, makes a difference :slight_smile: