DEV Community

Ajeet Singh Raina for Docker

Posted on • Updated on

StackOverFlow: Run RedisInsight in Docker Compose

RedisInsight is an intuitive and efficient GUI for Redis, allowing you to interact with your databases and manage your data—with built-in support for most popular Redis modules. The free non-commercial add-on provides tools to analyze the memory, profile the performance of your database, and guide you toward better Redis usage.

Install Docker

The first step is to install docker for your operating system. Run the docker version command in a terminal window to make sure that docker is installed correctly.

Note - On Windows and Mac, install docker version 18.03 or higher. You can run docker version to find out your docker version.

Run RedisInsight Docker image

Next, run the RedisInsight container. The easiest way is to run the following command:

docker run -v redisinsight:/db -p 8001:8001 redislabs/redisinsight:latest
Enter fullscreen mode Exit fullscreen mode

Accessing RedisInsight

Next, point your browser to http://localhost:8001.

Running RedisInsight inside Docker container

Follow the below steps to make it work:

Step 1. Create a Docker Compose file as shown below:

version: '3'
services
  redis:
    image: redislabs/redismod
    ports:
      - 6379:6379
  redisinsight:
    image: redislabs/redisinsight:latest
    ports:
      - '8001:8001'
    volumes:
      - ./Users/ajeetraina/data/redisinsight:/db 

Step 2. Provide sufficient permission

Go to Preference under Docker Desktop > File Sharing…

Top comments (0)