Skip to content

Latest commit

 

History

History

redis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

redis

Here, we are getting started with redis using Docker on our localhost and connect to it using ioredis for Node.js.

Getting started

Install Docker

Get the latest version of Docker for Mac.

Spin off a redis container

Run the redis docker image (it will pull the latest version of the image automatically):

docker run -d -p6379:6379 --name redis bitnami/redis:latest

Parameter explanation:

  • -d runs the container as a deamon (in the background)
  • -p6379:6379 exposes the redis port so you can reach it from your machine
  • --name redis will be the container name
  • bitnami/redis:latest is the image that is being used to spin off the contianer

Run docker ps to see what containers are currently running.

Setup basic Node application

Find an example Node application here.