NextJs + Prisma + Postgres + Docker
Unanswered
Rampur Greyhound posted this in #help-forum
Rampur GreyhoundOP
Error occurred prerendering page "/api/unidades". Read more: https://nextjs.org/docs/messages/prerender-error
68.11
68.11 PrismaClientInitializationError:
68.11 Invalid
68.11
68.11
68.11 Can't reach database server at
68.11
68.11 Please make sure your database server is running at
what am I doing wrong??
https://github.com/magnokf/next-maps
#docker
68.11
68.11 PrismaClientInitializationError:
68.11 Invalid
prisma.unidade.findMany() invocation:68.11
68.11
68.11 Can't reach database server at
postgres:543268.11
68.11 Please make sure your database server is running at
postgres:5432.what am I doing wrong??
https://github.com/magnokf/next-maps
#docker
3 Replies
Rampur GreyhoundOP
Actually the issue is with Dockerfile or compose.yml or both.
I don't understand why I'm not able to connect with the configured database.
Pls help.
I don't understand why I'm not able to connect with the configured database.
Pls help.
@Rampur Greyhound Actually the issue is with Dockerfile or compose.yml or both.
I don't understand why I'm not able to connect with the configured database.
Pls help.
Georgian Shepherd
your postgress db isn't working for some reasons, check your url and try through your dbms tool to see if the database is actually working maybe
@Georgian Shepherd your postgress db isn't working for some reasons, check your url and try through your dbms tool to see if the database is actually working maybe
Rampur GreyhoundOP
tks for your response. I ran the databse alone and it is working properly