From 87372bd70e1402b299f61abd0a6877e73315500b Mon Sep 17 00:00:00 2001 From: Sachin Rana Date: Wed, 29 Jan 2025 12:27:09 +0530 Subject: [PATCH] docker updates for redis (#1146) Signed-off-by: Sachin Rana --- docker-compose/dependent-docker-compose.yml | 1 - docker-compose/docker-compose.yml | 11 +++++++++++ .../src/main/resources/application-local.properties | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docker-compose/dependent-docker-compose.yml b/docker-compose/dependent-docker-compose.yml index c5ea9a107..172d8253e 100644 --- a/docker-compose/dependent-docker-compose.yml +++ b/docker-compose/dependent-docker-compose.yml @@ -11,7 +11,6 @@ services: redis: image: redis:6.0 - container_name: redis-server ports: - "6379:6379" restart: always diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index 5b43d4b02..d983190bf 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -9,6 +9,13 @@ services: volumes: - ./init.sql:/docker-entrypoint-initdb.d/init.sql + redis: + image: redis:6.0 + container_name: redis-server + ports: + - "6379:6379" + restart: always + mock-identity-system: image: 'mosipdev/mock-identity-system:release-0.10.x' user: root @@ -36,9 +43,13 @@ services: - SPRING_DATASOURCE_URL=jdbc:postgresql://database:5432/mosip_esignet?currentSchema=esignet - MOSIP_ESIGNET_MOCK_DOMAIN_URL=http://mock-identity-system:8082 - MOSIP_ESIGNET_INTEGRATION_KEY_BINDER=MockKeyBindingWrapperService + - SPRING_CACHE_TYPE=redis + - SPRING_REDIS_HOST=redis-server + - SPRING_REDIS_PASSWORD= depends_on: - database - mock-identity-system + - redis esignet-ui: image: 'mosipdev/oidc-ui:develop' diff --git a/esignet-service/src/main/resources/application-local.properties b/esignet-service/src/main/resources/application-local.properties index 5d2dbba6d..846cfa23b 100644 --- a/esignet-service/src/main/resources/application-local.properties +++ b/esignet-service/src/main/resources/application-local.properties @@ -27,9 +27,10 @@ spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.kafka.KafkaA spring.kafka.bootstrap-servers=localhost:9092 ## Redis configuration -spring.cache.type=simple +spring.cache.type=redis spring.redis.host=localhost spring.redis.port=6379 +spring.redis.password= ## Database configuration mosip.esignet.database.hostname=localhost