Replies: 1 comment
-
Hi @rares2002 👋 Can you please confirm that your MongoDB instance is correctly setup to run on port |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug description
I simply want to connect using Prisma to a mongodb instance running in a container.
The tricky part is that I am running this container on port 27018. (The host can connect to the container only on 27018)
When im trying to acces it with
npx prisma db push
, the command freezez (probably it tries to connect and retries and fails)How to reproduce
This is the docker compose:
This is the Database URL:
Here is also the Dockerfile that builds the mongo image (i have to run mongo in replica set)
Expected behavior
When I run
npx prisma db push
I should connect automatically to the db. I also defined some models in schema.prism, so it should connect properly.If I run the container back on port 27017, it connects imediatly. Changing back to 27018 both in the docker compose and in the url will not sucessfully connect.
Prisma information
This is the schema.prisma file
Environment & setup
Prisma Version
Beta Was this translation helpful? Give feedback.
All reactions