Allow changing the destination “/var/lib/gladysassistant” used to store all Gladys data. This also involves modifying the startup of the Docker containers such as Node-RED and Mosquitto.
This provides more flexibility if you want to use another partition or a disk to store the data and is cleaner than a symbolic link.
-v /var/lib/gladysassistant : The destination folder where Gladys will store all its data. You can change the part on the left of the « : » to modify the destination folder.
I just went to read the Node-RED integration code and normally the path used is indeed the same path as on Gladys, so it already works without modifications!
Yes I confirm after testing that it works fine. It’s just that I didn’t know that if Gladys starts the container, it will rely on the volume pointed to by the Gladys container.