Strapi deletes my collections and singles when restarting the server

Thank you for this, last question could you show me the Dockerfile you are using for development and or production.

I don’t think you are using the database in staging etc while on local are you ?
So when developing locally your not using your stage database ?