I'm trying to set-up a Prefect 2 docker container but I can't access the running server instance from outside.
I'm 100% sure this is a Prefect problem because I tested everything with netcat and curl to see if I could send a GET request locally and if I could send and receive packets from inside the container.
I've seen on this old question that you could solve this issue by adding a --expose
flag but it has since been removed.
Is there an option somewhere in the config to allow other IPs?
Yes, you will want to set the PREFECT_API_URL
. See the docs here.
You probably want to add that setting in your Prefect Profile.