I'm trying to install a (Docker) Mosquitto MQTT broker (see https://docs.arduino.cc/tutorials/portenta-x8/datalogging-iot).
However, the Mosquitto broker after running the docker-compose file keeps restarting?
Anyone an idea where this problem can come from? BTW, I have several Mosquitto brokers running on other platforms (locally and in the cloud) without any problem.
Actually the previous idea is wrong. The path is false, this causes docker to use a default config, hence the lack of error messages, and this is why it is not restarting continuously.
But it will not use the settings we defined in our config file.
The path needs to be changed to: "mkdir -p /var/rootdirs/home/fio/mosquito/config".
When adding the password protection, the "allow_anonymous true" has to be changed to false
The original method with the docker-compose seems much more elegant, I would appreciate if somebody could explain how it should be changed to make it work