add docker support, move to env file, add example

This commit is contained in:
creations 2025-01-05 20:48:29 -05:00
parent 608f4d5e8d
commit 58016ee4ea
Signed by: creations
GPG key ID: 8F553AA4320FC711
7 changed files with 75 additions and 6 deletions

View file

@ -1,4 +1,4 @@
import { redisConfig } from "@config/secrets";
import { redisConfig } from "@config/environment";
import { logger } from "@helpers/logger";
import { createClient, type RedisClientType } from "redis";
@ -23,6 +23,7 @@ class RedisJson {
RedisJson.instance.client.on("error", (err: Error) => {
logger.error("Redis connection error:");
logger.error((err as Error) || "Unknown error");
logger.error(redisConfig.host);
process.exit(1);
});