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