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.
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-stackPrepare a Persistent Data Directory
On Windows create a folder that will be mounted into the container:
mkdir -p e:/Redis/data/redisRun 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-stackThis 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-cliThe 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.soAccess RedisInsight
Open a web browser and navigate to the following URL to view the RedisInsight dashboard:
http://127.0.0.1:13333/
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Tech Hub
Sharing cutting-edge internet technologies and practical AI resources.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
