Access localhost inside docker container

Configuring host gateway routing to access localhost from Docker container environments

Use host

172.17.0.1

And of course, make sure your local service allowed remote connection.