From the course: Databases for Node.js Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up Redis

Set up Redis

From the course: Databases for Node.js Developers

Start my 1-month free trial

Set up Redis

- [Instructor] Similarly to MongoDB, we will also install a Docker container for Redis. For that, please make sure that your Docker daemon is still running and if it's running, you can type 'docker pull Redis' and this will pull the latest Docker image from Docker hub. Next, we want to create the container and run it. For that, type 'docker run--name' and this container should be named Redis. And again, we have to provide the port configuration. So we want to have the local port here on our machine, 7379 and this maps to the port into container, 6379 which is the default port of Redis. We want to create daemon here and we want to use the Redis image for that. And now we have a running container, we see that if we run Docker PS. Now, as you see we have a Redis container and the Mongo container running. As for MongoDB, we also want to use some graphic user interface to see what's actually stored in Redis and again…

Contents