How to access a webservice outside of the docker image. Any hint or suggestion would be greatly appreciated it!!
I have an spring boot application that calls a localhost gremlin server and a localhost mongo db server.
For my spring boot application, i build the docker image based on plugin:
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<name>jadeite1000/${project.artifactId}</name>
</image>
</configuration>
</plugin>
But when I run the webservice inside the docker image it doesn't seem to be able to access the "localhost" gremlin server outside of the docker image.
How can I resolve this problem.