Persistent storage

I have Directus installed (postgres) and when I redeployed my files were wiped out(mostly images). I'm trying to setup persistent storage but my brain is just not able to grasp what I am supposed to do. I'm using this link https://docs.railway.app/reference/volumes which I'm not even sure that is what I need. Thanks.
Railway Docs
Volumes | Railway Docs
Documentation for Railway
6 Replies
Percy
Percy7mo ago
Project ID: d911897c-20b8-46c5-8fa1-00af65bac5f5
Kevinmac
Kevinmac7mo ago
d911897c-20b8-46c5-8fa1-00af65bac5f5
Adam
Adam7mo ago
Mount the volume to your service on a specified path, then ensure that the data you’d like to persist is saved to that path. Make sure a folder on that path is NOT on github, as that will overwrite the volume
Brody
Brody7mo ago
I'm going to plug medim's template here https://railway.app/template/2fy758 works flawlessly last we checked
Kevinmac
Kevinmac7mo ago
I have the Directus already installed (I'll use this for the next one). I just need the persisted storage configured for the files that get uploaded.
Brody
Brody7mo ago
the template i linked above has a volume mounted to /directus/uploads