Skip to content

feat: add --redis-stack flag to dapr init for RediSearch support#1644

Open
singhvishalkr wants to merge 1 commit into
dapr:masterfrom
singhvishalkr:feat-redis-stack-init
Open

feat: add --redis-stack flag to dapr init for RediSearch support#1644
singhvishalkr wants to merge 1 commit into
dapr:masterfrom
singhvishalkr:feat-redis-stack-init

Conversation

@singhvishalkr
Copy link
Copy Markdown

Currently dapr init deploys a standard Redis container (redis:6) that does not include RediSearch. RediSearch is required for Dapr Agents' vector store capabilities and must be explicitly loaded or bundled in a Redis distribution that includes it.

This PR adds a --redis-stack flag to the dapr init command that switches the deployed Redis image to redis/redis-stack-server, which bundles Redis OSS with RediSearch and other modules pre-installed.

Usage:

dapr init --redis-stack

Changes:

  • Added redisStackDockerImageName and redisStackGhcrImageName constants for the redis-stack image
  • Added redisStack field to initInfo struct
  • Modified Init() function signature to accept the new redisStack parameter
  • Updated runRedis() to use the redis-stack image when the flag is set
  • Added --redis-stack flag to the init command with appropriate help text and example

The change is opt-in via the flag, so existing behavior remains unchanged for users who don't need RediSearch.

Closes #1607

Add a new --redis-stack flag to the dapr init command that deploys
redis/redis-stack-server instead of the standard Redis container.
Redis Stack bundles RediSearch which is required for Dapr Agents
vector store capabilities.

When --redis-stack is specified:
- Uses docker.io/redis/redis-stack-server:latest for Docker Hub
- Uses redis/redis-stack-server:latest for GHCR

This enables Dapr Agents Redis VectorStore to work out of the box
without additional configuration.

Signed-off-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>
@singhvishalkr singhvishalkr requested review from a team as code owners May 16, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: enable RediSearch support in dapr init for vector store capabilities

1 participant