When I save a images, they are deleted automatically in a few minutes. So, I would like to know what I need to configure to keep images that are saved in the static/images folder in my Django project.
Well, I figure it out that the filesystem gets reset everytime the machine restarts. So, I created a volumes associate to the django project, and save images in that folder.
But, for example I save 5 images, 4 of them are visible by fly ssh console but the rest one is not visible by ssh but it visible by url. Is this happening because I create two volumes? and how I can see that one.
All your static files would still be in your image when the machine restarts, unless you are uploading new images. If so, we are probably talking about files uploaded by a user and dynamically created by the application. Is that the case?
Yes that is the case, files uploaded by a user. I created volumes relate to that project, in a folder outside the django project, so when the machine restarts the media folder is not affected. In the django settings project I set that path.