Databases 5 min read

Getting Started with Redis Stack on Docker: Install, Run, and Configure

This guide explains how to set up Redis Stack with Docker, covering its components, available images, commands to pull and run the containers with volume mounts and port mappings, configuration file details, and how to access RedisInsight for visual data management.

Open Source Tech Hub
Open Source Tech Hub
Open Source Tech Hub
Getting Started with Redis Stack on Docker: Install, Run, and Configure

Redis Stack Overview

Redis Stack bundles the open‑source Redis server with the modules RediSearch, RedisJSON, RedisGraph, RedisTimeSeries and RedisBloom. The combined product supports full‑text search, document storage, graph queries, time‑series analytics and probabilistic data structures while remaining compatible with standard Redis replication, RDB and AOF import mechanisms.

Key Components

Redis Stack Server

The server includes the Redis core binary plus the five modules listed above.

RedisInsight

A web‑based GUI that visualises data, shows key statistics and helps tune performance for real‑time workloads.

Redis Stack Client SDK

Official client libraries for Java, JavaScript and Python, together with object‑mapping libraries (Redis OM for .NET, Node.js, Java, Python) that integrate with frameworks such as Spring, ASP.NET Core, FastAPI and Express.

Getting Started with Docker

Choose an Image

redis/redis-stack

– contains both the server and RedisInsight; ideal for local development and testing. redis/redis-stack-server – server only; recommended for production deployments.

Pull the Image

docker pull redis/redis-stack

Prepare a Persistent Data Directory

On Windows create a folder that will be mounted into the container:

mkdir -p e:/Redis/data/redis

Run the Container

docker run --name redis-stack \
  -v e:/Redis/data/redis:/app/redis/data \
  -p 63789:6379   # Redis Stack server port
  -p 13333:8001   # RedisInsight UI port
  -d redis/redis-stack

This command maps the host directory E:\Redis\data\redis to /app/redis/data inside the container, exposing the Redis server on host port 63789 and RedisInsight on host port 13333.

Connect with redis-cli

docker exec -it redis-stack redis-cli

The CLI connects to the running Redis Stack instance just like any standard Redis server.

Configuration File (redis-stack.conf)

port 6379
daemonize no
loadmodule /opt/redis-stack/lib/rediscompat.so
loadmodule /opt/redis-stack/lib/redisearch.so
loadmodule /opt/redis-stack/lib/redistimeseries.so
loadmodule /opt/redis-stack/lib/rejson.so
loadmodule /opt/redis-stack/lib/redisbloom.so
loadmodule /opt/redis-stack/lib/redisgears.so v8-plugin-path /opt/redis-stack/lib/libredisgears_v8_plugin.so

Access RedisInsight

Open a web browser and navigate to the following URL to view the RedisInsight dashboard:

http://127.0.0.1:13333/

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DockerredisDevOpsRedis Stack
Open Source Tech Hub
Written by

Open Source Tech Hub

Sharing cutting-edge internet technologies and practical AI resources.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.