Data get's deleted when strapi container restarts

Well I have done some analysis of Strapi and my theory is the data in database just stores records and has nothing to do with components/fields we create it rather generated custom code which is stored on local machine. So when the system restart if there is no volume the data is wiped. I have a back up restored without no luck i am happy at-least i have my record but i cannot tell you how many times I’ve had to rebuild my content type builder. However this is a major flaw in software design.

The limitation is that you will not be able to use development mode in a docker. Rather changes to content type structure will need to be done on local machine almost as a code change/pr then push the latest file updates to new docker image deploy and so on.

Anyways now my production site is down so will be spending weekend rebuilding this :upside_down_face:

1 Like