update redis hostname to avoid docker network conflicts

This commit is contained in:
Akbar Rahman 2023-08-29 19:40:53 +01:00
parent 1f2b1dd8e5
commit 21466211a1
Signed by: alvierahman90
GPG Key ID: 20609519444A1269
2 changed files with 2 additions and 1 deletions

View File

@ -7,5 +7,6 @@ services:
environment: environment:
- SECRET=${SECRET} - SECRET=${SECRET}
redis: redis:
hostname: sus-redis
image: redis:7 image: redis:7
volumes: [ "./redis:/data" ] volumes: [ "./redis:/data" ]

View File

@ -31,7 +31,7 @@ import (
) )
var client = redis.NewClient(&redis.Options{ var client = redis.NewClient(&redis.Options{
Addr: "redis:6379", Addr: "sus-redis:6379",
Password: "", Password: "",
DB: 0, DB: 0,
}) })