No way to change host binding for Prism running in proxy mode

In the Prism CLI documentation, it says that for running prism in docker, you must bind to 0.0.0.0 to be able to access it from outside the container. The reason for this has to do with docker’s network implementation: https://pythonspeed.com/articles/docker-connection-refused/

This works fine when running Prism as a mock server, as there is the -h --host argument to specify “0.0.0.0” (vs the default 127.0.0.1). However, it seems there is no way to do this if you want to run prism as a proxy server.

Is there a workaround to this or any plans to similarly allow for us to specify host binding for running as proxy? When it runs as 127.0.0.1, you can’t actually use this from outside docker container.

Alright, so I ended up going into the actual code to see if I could fork and just change the binding, and then I noticed there IS a --host parameter, so now this works for me.

Disregard!

1 Like