Is it the target URL in API definition must be publicly reachable?

I am not too versed at docker configuration but it should work if you reference it in the target_url of your API definition. More on this thread