Replies: 1 comment 4 replies
-
I had what I think is the same issue. The process by default binds to 127.0.0.1 loopback IP, which is not accessible outside of the container, and instead needs to be bound to 0.0.0.0. You can configure this in the .meshrc.yaml using the hostname property in the serve config: https://www.the-guild.dev/graphql/mesh/docs/config-reference#serve |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a requirement to run the mesh server in local docker desktop as well as kubernetes cluster. The docker image for the mesh server works as expected when deployed in kubernetes. But the same image when run in a docker container directly, it is not connecting. This is the Dockerfile:
I used the command
docker run -d -p 4000:4000 <<image-name>>
to start container.The container logs show that the server started successfully. However it is not accessible at http://localhost:4000/graphql. A curl to this url from inside the container shell gives error:
server returned error: HTTP/1.1 400 Bad Request
Any thoughts on why it is not accessible?
Beta Was this translation helpful? Give feedback.
All reactions