I’m trying to upgrade Prisma and update my managem...
# orm-help
j
I’m trying to upgrade Prisma and update my management API secret. Trying to find the right documentation, could anyone point me to the right direction?
h
you will need to update the image version and prisma config for that
data will not be lost
your prisma server will start as usual and will read the existing meta data in your database and will continue to work as normal
j
So update to e.g.
prismagraphql/prisma:1.28
in
docker-compose.yml
, then
docker-compose restart
?
h
yup
if you want to update the secret
just change it in the docker-compose file
j
And how about the management secret? Same deal - whatever it is in the
.yml
at the time of restart, that’s what I need in the env variable when connecting?
h
yes, the thing that is in the PRISMA_CONFIG section of the docker-compose file
j
Yup, got it
Makes it clearer. This is what I attempted but now my postgres_1 stays in the “Restarting” state locally
Not great with Docker, what would be the recommended way of cleaning up local environment and expect it to get up and running again? Or even nuke the DB (I can restore a snapshot easily)
h
ok, to wipe everything(only for the project run) docker-compose down --rmi all -v --remove-orphans
this will remove EVERYTHING
including the images and volumes
j
Any other suggestions that would keep the DB? I'm asking to understand this better since I will have to do this for production soon :P
h
then restart. I am not sure your mean by "cleanup" (I am referring to deletion of volume and internal docker network)
j
Right
Yeah, I don't know what I mean either :P but like I said postgres gets stuck at restarting when I do that
h
then check the logs and see the error(I suspect it will the versioning error) use docker-compose logs
j
PMing you the log, I see the same Java error over and over again