Skip to content

Commit

Permalink
Localhost redis connection
Browse files Browse the repository at this point in the history
  • Loading branch information
zrwaite committed Sep 4, 2023
1 parent 1a0791c commit 410eff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions db/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 410eff4

Please sign in to comment.