How do you setup a Redis server?

(Manthan Mallikarjun) #1


I have two small servers. One that runs docker/ruby on rails and the other that runs db’s. I can get postgres running fine, but the biggest problem is that I cant get redis to allow external connections from the docker server. My installation always fails there. Are there any tutorials or tips you can give me to help me through?


(Ben T) #2

Are you allowing the port redis runs on to be accessed from other devices? On cloud providers (aws, gcloud) you may have to create firewall rules allowing the port redis runs on to be connectable. You may also have to modify the redis config to not bind to or localhost, and instead bind to an internal IP.

Give this a readover first (and be sure you configure good firewall rules!):

Then modify the config file to bind to your hostname, and open the port for access.

(Manthan Mallikarjun) #3

Thanks! With your help, + some IRC chatting I finally got it working! :slight_smile: