I am using Mopidy in a docker container, specifically the Iris project docker environment with docker-compose. Sometimes it is required that I change the docker-compose.yml file which of course recreates the container and I lose all of the Iris settings like Dark Mode, Genius login, etc.
I tried setting the data_dir in mopidy.conf but that did nothing.
[iris]
enabled = true
data_dir = /data/iris
I have the entire /var/lib/mopidy directory mounted, but still these settings are not saved. I am at a loss as to where Iris would save these settings. They must be somewhere.
Thank you but this does not work. When the container is rebuilt all Iris settings are lost. This is infuriating because these settings must be stored somewhere and I have mounted almost the entire file system. Crazy. Apparently they are stored in magic dust.
If Iris settings are not stored there, then I think you should search the iris issue tracker: Issues · jaedb/Iris · GitHub , and if nothing is found, ask there directly.
What I would do before that though (especially with a custom install with mounted docker volumes) is to check that mopidy indeed can write the data_dir directory (I think there will be some specific errors in the log file if that is the case, and you can also double check folders permissions).
Iris (and therefore Mopidy) will need permission to write to this location. If you are using Docker, then you will need to make sure your data_dir is mounted to an external volume. Check out the sample docker-compose.yaml for reference.