docker compose to connect to database running on host machine? #9849
Unanswered
ScottChapman
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, I realize this might be more of a "how do I do that in docker compose?" sort of thing, but figured I would post here.
I am running Hasura with docker compose on my host. I am also running a postgres DB on the same host running docker.
I want Hasura to be able to connect to the DB running on the host.
What I tried was adding
to the container def for both the data-connector-agent and the graphql-engine. But when I try to create a new data source it isn't able to connect to
host.docker.internal
What am I missing? Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions