Search code examples
spring-bootdockerremote-accessremote-server

can't access to a spring boot API based in remote docker


I'm trying to get a connection to a Spring Boot application containerized in a old docker:

My docker version is 1.12.2 Spring Boot 2.5.1

here is my Dockerfile:

FROM openjdk:8-alpine
ADD manager.jar manager.jar
EXPOSE 8443
ENTRYPOINT ["java","-Dspring.profiles.active=dev","-jar","manager.jar"]

I've build the image inside docker with this simple command:

 docker build -t manager .

and then run the container:

docker run -p 8443:8443 -t manager manager

But when I'm trying to have a connection by typing the adress:

https://SERVERNAME:8443

...timeout.

Did I make a mistake somewhere?


Solution

  • So like I said in my last post, after remove the TLS properties from the application.properties, everything is solved. It's a server configuration problem.