0

I try to deploy prisma 1 on plesk using docker. The connection with the database fail withe the error: {com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused}}]}

Here is my PRISMA_CONFIG settings

{managementApiSecret: sdfqsdfsqdf, port:4466, databases:{default:{port: 27107, connector: mongo, uri: mongodb://127.0.0.1:27017/prisma, database:prisma}}}

I know that the ip should not be localhost as i'm in the docker. On mac i could use host.docker.internal. But i'm on linux Centos 7.

How to setup the IP on the docker to call my local mongo db

Please any help

Thank you

Francois
  • 101
  • 5

0 Answers0