Use Volume with grafana will permission denied

I was configed volume and data path, but when i start my grafana, it will crash. This is log: Error: ✗ failed to connect to database: failed to create SQLite database file "/data/grafana.db": open /data/grafana.db: permission denied Project ID: cec89f56-3ff7-4888-a587-7afb428f9c71
No description
3 Replies
Percy
Percy9mo ago
Project ID: cec89f56-3ff7-4888-a587-7afb428f9c71
Holegots
Holegots9mo ago
wI guess because this image doesn't use root ro run
Brody
Brody9mo ago
correct, the volume is mounted as root try setting a service variable RAILWAY_RUN_UID to 0