jimzucker / github-webhooks

Framework and Docker Container for running Webhooks on your GitHub repo.
MIT License
0 stars 1 forks source link

Ruby Docker does not connect to host network #3

Closed jimzucker closed 4 years ago

jimzucker commented 4 years ago

The port mapping is not working, if you test with curl inside the container the server responds OK but if we hit it from the host we do not get the response.

Tests 1: docker exec -ti github-webhooks curl localhost:4567 result: passes

image

Test2curl localhost:4567 result: fail

image

Below is the compose file:

image
jimzucker commented 4 years ago

Fixed by binding ruby to 0.0.0.0