Prisma cannot authenticate database server Prisma cannot authenticate database server docker docker

Prisma cannot authenticate database server


I think the issue is a database name mismatch.

Try adding POSTGRES_DB: college_db environment variable to your postgres container.

By default the init container uses POSTGRES_USER value for the database name.


What-a-mistaka-to-make. I had postgres installed locally on my Windows machine. So it was using that instance of postgres instead of the one on my docker environment. I removed the windows postgres installation and everything is working as expected. https://github.com/prisma/prisma/issues/8927