diff --git a/api/src/config/index.ts b/api/src/config/index.ts index 32f4ec6e..5cb430a6 100644 --- a/api/src/config/index.ts +++ b/api/src/config/index.ts @@ -132,7 +132,7 @@ export const config: Config = { type: process.env.REDIS_ENABLED === 'true' ? 'redis' : 'memory', ttl: 60 * 1000, // Milliseconds max: 100, // Maximum number of items in cache (defaults to 100) - host: process.env.REDIS_HOST, + host: process.env.REDIS_HOST || 'redis', port: parseInt(process.env.REDIS_PORT || '6379'), }, mongo: { diff --git a/api/src/config/types.ts b/api/src/config/types.ts index f2131757..7b472909 100644 --- a/api/src/config/types.ts +++ b/api/src/config/types.ts @@ -21,7 +21,8 @@ type TCacheConfig = { max: number; host: string; port: number; -} & { type: 'memory' | 'redis' }; + type: 'memory' | 'redis'; +}; export type Config = { i18n: { translationFilename: string };