skip to Main Content

how to set differente environment variables in Tomcat docker?

I've a spring boot app that I'm deploying in a Tomcat Docker. I've many properties in application-deploy.properties like this: #DB spring.datasource.url=jdbc:mysql://${SPRING_DATASOURCE_URL} spring.datasource.username=${SPRING_DATASOURCE_USERNAME} spring.datasource.password=${SPRING_DATASOURCE_PASSWORD} spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver I want to get the variables from Docker. So, I'm trying this Dockerfile: FROM tomcat:9.0.56 ARG…

VIEW QUESTION
Back To Top
Search