#Laravel Sail connection refused.

12 messages · Page 1 of 1 (latest)

hearty hearth
#

I am trying to use redis but I always get this error:

RedisException
PHP 8.3.12
11.27.2
Connection refused

My .env:

CACHE_STORE=redis
CACHE_PREFIX=

MEMCACHED_HOST=127.0.0.1

# Redis
REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
grand aspen
#

where is your redis running?

hearty hearth
#

I am using docker compose

grand aspen
#

then your redis host likely isn't 127.0.0.1

hearty hearth
#

oh

grand aspen
#

use the docker container name for the host

hearty hearth
#

so just redis?

#

ok error gone xD

#

thanks

#

!solved

#

!resolved

grand aspen
#

#1270372863412801587 message