DEV Community

Discussion on: How To Build a GraphQL API with Node.js, Prisma, Docker and Postgres

Collapse
 
alucardu profile image
Peter Boomsma

Thank you for the content, but I'm running into an issue regarding Docker and Prisma. I've also posted the question here > stackoverflow.com/questions/689220...

I'm getting a authentication error when I run npx prisma migrate dev --name "init":

Error: P1000: Authentication failed against database server at localhost, the provided database credentials for db_user are not valid.

I've used your configuration and I'm running Windows. docker ps shows the server is running and Prisma is using the .env file. Any suggestions?

Collapse
 
alucardu profile image
Peter Boomsma

I resolved my issue. I was running a local instance of postgres on my Windows system as well. This was conflicting with the postgres instance in Docker. I removed postgres from Windows and everything is working.