From 2e3cff0a989f0c6f798c84802bde5a138b8d4b5c Mon Sep 17 00:00:00 2001 From: Rachid F Date: Sat, 1 Jun 2024 00:45:23 -0700 Subject: [PATCH] :bug: Redis connection string --- docker-compose.dev.yml | 1 + docker-compose.source.yml | 1 + docker-compose.yml | 1 + packages/api/src/app.module.ts | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 0ae4959ff..2a94d471e 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -37,6 +37,7 @@ services: REDIS_PASS: ${REDIS_PASS} REDIS_USER: ${REDIS_USER} REDIS_PORT: ${REDIS_PORT} + REDIS_DB: ${REDIS_DB} ENCRYPT_CRYPTO_SECRET_KEY: ${ENCRYPT_CRYPTO_SECRET_KEY} HUBSPOT_CRM_CLOUD_CLIENT_ID: ${HUBSPOT_CRM_CLOUD_CLIENT_ID} HUBSPOT_CRM_CLOUD_CLIENT_SECRET: ${HUBSPOT_CRM_CLOUD_CLIENT_SECRET} diff --git a/docker-compose.source.yml b/docker-compose.source.yml index ab660557c..53820373b 100644 --- a/docker-compose.source.yml +++ b/docker-compose.source.yml @@ -38,6 +38,7 @@ services: REDIS_USER: ${REDIS_USER} REDIS_PASS: ${REDIS_PASS} BACKEND_PORT: ${BACKEND_PORT} + REDIS_DB: ${REDIS_DB} ENCRYPT_CRYPTO_SECRET_KEY: ${ENCRYPT_CRYPTO_SECRET_KEY} HUBSPOT_CRM_CLOUD_CLIENT_ID: ${HUBSPOT_CRM_CLOUD_CLIENT_ID} HUBSPOT_CRM_CLOUD_CLIENT_SECRET: ${HUBSPOT_CRM_CLOUD_CLIENT_SECRET} diff --git a/docker-compose.yml b/docker-compose.yml index 04a002eeb..ed9f2a62a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,6 +32,7 @@ services: REDIS_USER: ${REDIS_USER} REDIS_PASS: ${REDIS_PASS} REDIS_PORT: ${REDIS_PORT} + REDIS_DB: ${REDIS_DB} ENCRYPT_CRYPTO_SECRET_KEY: ${ENCRYPT_CRYPTO_SECRET_KEY} HUBSPOT_CRM_CLOUD_CLIENT_ID: ${HUBSPOT_CRM_CLOUD_CLIENT_ID} HUBSPOT_CRM_CLOUD_CLIENT_SECRET: ${HUBSPOT_CRM_CLOUD_CLIENT_SECRET} diff --git a/packages/api/src/app.module.ts b/packages/api/src/app.module.ts index eb09ab355..e1c2e4d3e 100644 --- a/packages/api/src/app.module.ts +++ b/packages/api/src/app.module.ts @@ -66,7 +66,8 @@ import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler'; host: process.env.REDIS_HOST || 'redis', port: Number(process.env.REDIS_PORT) || 6379, password: process.env.REDIS_PASS, - username: process.env.REDIS_USER || 'default' + username: process.env.REDIS_USER || 'default', + db: Number(process.env.REDIS_DB) || 0 }, }), ],