I’m very new to backend so Prisma was a really great starting point for me. I’m now looking at deploying my backend to Azure with some help from my boss. I’ve managed to deploy my TS NodeJS project (based off the simple Node TS starter) and it’s working. I’ve also created a MySQL database within Azure that I’m hoping to connect through to the Prisma service. I have two issues at the moment.
- How can I tell Prisma to use my Azure DB instead of the Docker bundled mysql image?
- How do I take just the Prisma service and host it as an App Service in Azure?
I’ve had a look at the docs but couldn’t find anything specifically relating to my problems, the deployment guide for DigitalOcean (manual) seems to be the one most applicable to my situation but it doesn’t say anything about pointing to a different DB.
BONUS QUESTION: I was under the impression that running a database inside a container is a no no in production but this seems to be the default for Prisma, is there something I don’t understand about the way Prisma works that makes this okay?
EDIT: I have seen Advice on best practise? - Deploying graphql-yoga server w/ Prisma in production by @nilan which is helpful but I’m a little lost as a Docker newbie, I assume there’s some config I need to add to tell it where my database lives but I’m not sure where that goes.