Wednesday, March 21, 2018

Not able to access the spring boot application deployed on a docker container

I had this issue of not able to access the springboot app deployed inside the container. Even though the port is opened in security firewall settings, I was not able to access the app. Later on I found out springboot App default has embedded Tomcat which is running on port 8080.

you need to create application.properties under src/main/resources and add server.port in the file
server.port=8085

now build the springboot jar and build the image and run the container.

That issue should go away.


 
 
 

No comments:

Post a Comment