QUESTION: I am using the super basic setup from th...
# orm-help
p
QUESTION: I am using the super basic setup from this guide: https://www.prisma.io/docs/tutorials/setup-prisma/create-new-db/mysql-gui4peul2u/ Whenever i kill the running docker instances and restart them and then re-deploy prisma it always kills the data i have in my database. Why is it doing this and how do i prevent the loss of data when the services are killed and restarted?
1
e
my hunch is that the database runs inside the docker container and it's storing the data inside of the container as well. when you tear down the instance, it also removes the data.
p
Well how is someone supposed to prevent loss of data because a server goes down?
a
probably on production you want to either use prisma cluster or point to a RDS instance or something like that
that said, you probably have to set up a volume
p
i do have a volume set up. The problem here is that i was using
-v
on my take downs.
e
there ya go 🙂