-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not able to reach pico server inside docker compose #22
Comments
in details, my Dockerfile looks like:
... to run Pico Server seems running correctly:
but trying to hit any endpoint with whatever REST method it always end up not getting any response, and nothing logged on console |
Hi, your issue is because the pico server defaults to running on localhost (127.0.0.1) which is internal to the docker container. You need it to run on
There is however an open PR from just a few days ago which adds this option: #21 |
@fergalwalsh thanks a lot! Just for anyone that will read this post, my solution in the Dockerfile looks like:
|
@fergalwalsh I'm running a pico server with the command
python -m pico.server app
: everything works fine locally or in a EC2 instance, but running it inside a Docker container with docker-composite is not reachable despite opening the port 4242The text was updated successfully, but these errors were encountered: