From 5607c5a9e7d5dd23f49a208136f806cc4b84c20a Mon Sep 17 00:00:00 2001 From: TayGov Date: Mon, 25 Sep 2023 10:30:12 -0700 Subject: [PATCH] Update redis properties --- docker-compose.yml | 4 ++-- .../ai-reviewer-api/src/main/resources/application.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 18c5c946..467496ca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -85,8 +85,8 @@ services: redis: container_name: redis image: redis - #command: redis-server --requirepass admin - command: redis-server + command: redis-server --requirepass admin + #command: redis-server ports: - "6379:6379" volumes: diff --git a/src/backend/ai-reviewer-api/src/main/resources/application.yml b/src/backend/ai-reviewer-api/src/main/resources/application.yml index 3c2c5ed4..13d04d87 100644 --- a/src/backend/ai-reviewer-api/src/main/resources/application.yml +++ b/src/backend/ai-reviewer-api/src/main/resources/application.yml @@ -9,10 +9,6 @@ management: spring: application: name: ai-reviewer-api - redis: - host: ${REDIS_HOST:localhost} - port: ${REDIS_PORT:6379} - password: ${REDIS_PASSWORD:admin} data: mongodb: authentication-database: ${AIR_SPRING_DATA_MONGODB_AUTHENTICATION_DATABASE:admin} @@ -21,6 +17,10 @@ spring: database: ${AIR_SPRING_DATA_MONGODB_DATABASE:ai-reviewer} username: ${AIR_SPRING_DATA_MONGODB_USERNAME:admin} password: ${AIR_SPRING_DATA_MONGODB_PASSWORD:admin} + redis: + host: ${REDIS_HOST:localhost} + port: ${REDIS_PORT:6379} + password: ${REDIS_PASSWORD:admin} security: oauth2: resourceserver: