skip to Main Content

Unable to run docker container with Spring data source arguments

I want to run a Docker container with some data source arguments the way I run a Spring Boot app on the terminal with Spring data source arguments. For example: java -Dserver.port=8999 -Dlogging.org.hibernate.SQL=DEBUG -Dlogging.level.ROOT=DEBUG -Dlogging.level.io.github.jhipster=DEBUG -Dlogging.level.com.opti.ecom=DEBUG -Dlogging.path=/var/log/spring/ecom_v2/ -jar target/LatestBuild/ecom-0.0.1-SNAPSHOT.jar --spring.jpa.show_sql=true…

VIEW QUESTION

UncategorizedMongoDbException: Exception authenticating MongoCredential – Docker

I have a problem connecting a microservice with mongoDB in Docker in a ubuntu server My application.properties: #-------APP------- spring.application.name=app-interventor server.port=${PORT:0} #-----MongoDb------ spring.data.mongodb.host=mongo spring.data.mongodb.port=27017 spring.data.mongodb.authentication-database=admin spring.data.mongodb.username=user spring.data.mongodb.password=user spring.data.mongodb.database=interventorApp spring.data.mongodb.auto-index-creation: true #-----Eureka------- eureka.instance.metadataMap.instanceId=${spring.application.name}:${spring.application.instance_id:${random.value}} eureka.client.service-url.defaultZone=http://eureka:8761/eureka management.endpoints.web.exposure.include=* management.endpoint.health.show-details=always as initialize mongo in docker: sudo…

VIEW QUESTION

Redis – Spring boot Cacheable annotation with JPA entity

I'm trying to caching jpa entity to redis through @Cacheable annotation. [RedisConfig.class] @Configuration public class RedisConfig { @Value("${spring.redis.host}") private String host; @Value("${spring.redis.port}") private int port; @Bean public RedisConnectionFactory redisConnectionFactory() { return new LettuceConnectionFactory(host, port); } @Bean public RedisTemplate<?, ?> redisTemplate()…

VIEW QUESTION
Back To Top
Search