Springboot - ERROR Timeout

I’m trying to upload my backend project with Spring Boot and Docker. The issue that arises in my events section is ‘Timeout’. Let me show you my Dockerfile and application properties.

DOCKERFILE

FROM openjdk:17-jdk

MAINTAINER lautaroCenizo

# Copia el archivo JAR construido en la fase de construcción
COPY target/Clinica-Odontologica-0.0.1-SNAPSHOT.jar clinica-odontologica.jar

EXPOSE 8080

# Comando para ejecutar la aplicación al iniciar el contenedor
ENTRYPOINT ["java", "-jar", "clinica-odontologica.jar"]

APPLICATION PROPERTIES

#Prueba
#spring.datasource.url=jdbc:mysql://localhost:3306/clinica_odontologica
#spring.datasource.username=root
#spring.datasource.password=admin
#Produccion
spring.datasource.url=jdbc:mysql://
spring.datasource.username=
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.datasource.hikari.maximum-pool-size=3
spring.datasource.hikari.minimum-idle=2
spring.datasource.hikari.idle-timeout=30000
logging.level.org.springframework=INFO
server.port=10000
server.address=0.0.0.0
application.security.jwt.secret-key=
application.security.jwt.expiration=86400000
application.security.jwt.refresh-token.expiration=604800000
file.upload-dir=C:/Users/Lautaro/Desktop/Desarrollo-web/Proyectos/proyecto-clinica-odontologica/imagenes
spring.servlet.multipart.max-file-size=5MB
spring.servlet.multipart.max-request-size=5MB

HI,

“Timed Out” on a Web Service deploy is usually because we cannot detect a running web server.

I have a very basic Spring Boot example that deploys and returns requests. Maybe that will help to compare to see if there’s any particular configuration you need to get your project up and running.

Render Web Services expects an HTTP web server to run binding to host 0.0.0.0 and a port. More in the docs: https://docs.render.com/web-services#port-binding

Alan