When I try to mount an empty volume to /var/www/html/storage, the dashboard does not load.
Mounting a directory with the standard directories to /var/www/html/storage makes the dashboard load, but collections cannot be created upon save.
And when mounting the /var/www/html, it all seems to work until I restart the container and nothing is persisted.
How can I configure cockpit with a persistent storage directory using docker volume?
My goal is to have cockpit running on google kubernetes with an external mongodb for database.
I have extended the agentejo/cockpit image with custom config.php and injecting addons, so I dont believe that the dev image is for me.
In Google Cloud Kubernetes managed to mount a persistent volume to /var/www/html/storage and by setting fsGroup=33 (www-data user in docker image) I could create new collections. The issue seems to have been that the php process inside the container runs as www-data and did not have permissions to create the collections dir in storage.