I had to redo my laptop hard drive with a clean install and I've re-setup Homestead.
I used my .env file from my main box which also uses Homestead but for some reason, Redis is refusing my connection when trying to use it for sessions and caching.
ConnectionException in AbstractConnection.php line 168:
Connection refused [tcp://192.168.10.10:6379]
I don't recall having to do anything differently to get it to work on my main machine, but for some reason the laptop won't connect.
I checked the redis-cli and it is running, but just rejecting the connection.
Having the same issue. Trying to connect from a Docker container to the redis server which is in it's own Docker container. I am also able to get into the redis container from the app container via # redis-cli -h 172.**.*.* -p 6379 and set and get keys.
@allenmccabe hie , did you manage to solve the issue. I am also having the same issue. I am trying to run an app that i pulled from github. Building docker images is working perfectly , redis container, node container, database container are running perfectly but the php container is the one giving me problems. Once i run docker compose up -d , i get the following error
I was building my own Redis image and tagging as "redis-server", which is also the command that was needed to get it up and running. I changed this to "redis-session-db" to avoid any potential conflicts (eg. the docker run command). I also included the port flag as part of my run command in my launch script: docker run --name "$DOCKER_APP_NAME" -p 6379 -d "$DOCKER_IMAGE"
I'm not sure what ultimately "fixed" it, but it finally started working.