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
eelke
06/19/2018, 4:49 PM
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
prolink007
06/19/2018, 5:44 PM
Well how is someone supposed to prevent loss of data because a server goes down?
a
Avi Block
06/19/2018, 7:11 PM
probably on production you want to either use prisma cluster or point to a RDS instance or something like that
Avi Block
06/19/2018, 7:11 PM
that said, you probably have to set up a volume
p
prolink007
06/19/2018, 8:43 PM
i do have a volume set up. The problem here is that i was using