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

Kafka Consumer Connecting to MongoDB

I have a Kafka Consumer service @KafkaListener( topics = "topic1", groupId = "cluster1", containerFactory = "KafkaListenerContainerFactory") public void consume(Message message) { logger.info(String.format("Message recieved -> %s", message.getMsg())); Long id = message.getId() RepoDetail repoDetail = testRepo.findByID(id); logger.info( String.format( "Message -> %s", repoDetail.getMessage()));…

VIEW QUESTION
Back To Top
Search