Strapi project resets on heroku every couple of hours (dyno restarts)

Hi I have maybe a comparable issue I using mariaDB on AWS RDS and I see the correct values but when i rebuild the docker container it delete it from the database. Its in dev mode cause I want to edit stuff.