Hello guys I am facing an issue with digitalocean,...
# orm-help
l
Hello guys I am facing an issue with digitalocean, docker and a graphql-yoga server. My server loooks like:
Copy code
const server = new GraphQLServer({
  typeDefs: "./schema.graphql",
  resolvers: resolvers,
  context: req => ({
    ...req,
    db: new Prisma({
      endpoint: "<http://localhost:4466>",
      debug: true
    }),
    graphqlAuthentication: graphqlAuthenticationConfig({
      adapter: new GraphqlAuthenticationPrismaAdapter({}),
      secret: "wherearemyshoes",
      mailer,
      mailAppUrl: "<http://example.com>"
    })
  })
});
I also have tried to set the endpoint as the public ip of the droplet and with
0.0.0.0
, the server endpoint is working and its accessible from playground, but when I try to fire the login mutation from the server the request hangs. Thanks for any help in advance
If anyone needs this info I fixed the error by passing the container name
<http://prisma:4466>