Docker Redis Connection refused

前端 未结 5 1245
情书的邮戳
情书的邮戳 2021-01-31 04:59

I\'m trying to access Redis server through the code and it\'s not connecting. But if i bash to the redis container i can access the redis-cli.

docker-compose.yml looks l

5条回答
  •  遇见更好的自我
    2021-01-31 05:38

    just remove the redis port and change the redis hostname to redis in your Laravel project .env file.

    REDIS_HOST=redis
    #REDIS_PORT=6379
    

提交回复
热议问题