From 410eff487ae9fecbc82278fcc7d5c934b5cd3527 Mon Sep 17 00:00:00 2001 From: Zac Waite <129032699zw@gmail.com> Date: Mon, 4 Sep 2023 14:12:03 -0300 Subject: [PATCH] Localhost redis connection --- db/redis.go | 5 +---- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/db/redis.go b/db/redis.go index 20841fd..2185e8b 100644 --- a/db/redis.go +++ b/db/redis.go @@ -15,10 +15,7 @@ var Cache *redis.Client func ConnectToRedis() { // addr := "127.0.0.1:6379" - addr := "redis:6379" - if config.CONFIG.Dev { - addr = "localhost:6379" - } + addr := "localhost:6379" Cache = redis.NewClient(&redis.Options{ Addr: addr, Password: config.CONFIG.RedisPassword, // no password set diff --git a/docker-compose.yml b/docker-compose.yml index 3c33508..dcbe1cd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,6 @@ services: web: env_file: './.env' build: . - image: 'zrwaite/codegraphs_web:5.0.0' + image: 'zrwaite/codegraphs_web:5.0.1' ports: - '8001:8001' \ No newline at end of file