Self managed Grist and CIFS storage

I have Grist running on a self managed Docker container using Docker Compose. I’d like to offload the storage to a CIFS share. I’ve been able to setup the volume mount in my docker-compose.yml file, and Grist creates the docs folder and home.sqlite3 file. The Grist app launches and I can create new docs. However, it’s not creating the grist-sessions.db in the CIFS share, nor is it saving the .grist files in the docs folder.

Is it possible to use this setup for persistent storage?

Do you want to mount the samba inside the container?
Or could it also be an option to mount the samba on the host system, and just point the
docker volumes to this mount?

I’d like to mount the CIFS share inside the container. As I mentioned, I’m able to do this, and Grist accesses it and creates some files in there, but it’s not creating the grist-sessions.db in the CIFS share, nor is it saving the .grist files in the docs folder.