You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to be quite simple to add persistence to mosquitto. Simply add persistence true persistence_location /mosquitto/data
to data/mqtt/config/mosquitto.conf.
But - that doesn't work.
The reason is, that /mosquitto/data isn't mounted to data/mqtt/data, as one could expect.
You have to add
mqtt:
volumes:
- ./data/mqtt/data:/mosquitto/data
explicitly to the docker-compose.yml. Only then the persistence is really persistent.
The text was updated successfully, but these errors were encountered:
It seems to be quite simple to add persistence to mosquitto. Simply add
persistence true
persistence_location /mosquitto/data
to data/mqtt/config/mosquitto.conf.
But - that doesn't work.
The reason is, that /mosquitto/data isn't mounted to data/mqtt/data, as one could expect.
You have to add
explicitly to the docker-compose.yml. Only then the persistence is really persistent.
The text was updated successfully, but these errors were encountered: