Anyone else run into the issue of not being able to connect to the postgres db that is being run by prisma?
h
harmony
07/08/2018, 11:14 AM
you have to get the container's ip, I don't think it binds to localhost
a
Arnab
07/08/2018, 11:15 AM
It does. I had to specify
Copy code
ports:
- "5432:5432"
Arnab
07/08/2018, 11:15 AM
in the docker-compose file
h
harmony
07/08/2018, 11:33 AM
well is it running and have you tried the container ip?
a
Arnab
07/08/2018, 11:33 AM
It connects now 🙂
s
sd
07/08/2018, 12:25 PM
The db container isn't exposed to localhost by default, thats why you can't connect to it unless you bind it like you did 🙂 Pretty sure its only connected to the other container which Prisma is running in by default.
a
Arnab
07/11/2018, 10:42 AM
@sd: On docker for mac, I don't think exposing the port is required for the prisma docker container to get access to it. But on windows it might be