
redis/redisinsight
Redis Insight 是 Redis 官方推出的最佳图形用户界面(GUI)工具,它集数据结构可视化浏览与编辑、实时性能监控、集群管理、问题诊断及开发调试等功能于一体,能够帮助开发者和管理员更高效地操作与维护 Redis 数据库,凭借官方出品的可靠性和专业性,成为 Redis 生态中简化日常管理、提升工作效率的不可或缺的利器。
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
General information
Redis Insight is an ideal tool for developers who build with any Redis deployments – including Redis Open Source, Redis Stack, Redis Enterprise Software, Redis Enterprise Cloud, and Amazon ElastiCache – and who want to optimize their development process. Redis Insight lets you visually browse and interact with data, take advantage of the advanced command line interface and diagnostic tools, and https://github.com/RedisInsight/RedisInsight.
If you enjoy Redis Insight, star our https://github.com/RedisInsight/RedisInsight to let us see the value you find in what we do.
Run Redis Insight on Docker
You can install Redis Insight using one of the options described below.
- If you do not want to persist your Redis Insight data:
bashdocker run -d --name redisinsight -p 5540:5540 redis/redisinsight:latest
- If you want to persist your Redis Insight data, first attach the Docker volume to the
/datapath and then run the following command:
bashdocker run -d --name redisinsight -p 5540:5540 redis/redisinsight:latest -v redisinsight:/data
If the previous command returns a permission error, ensure that the user with ID = 1000 has the necessary permissions to access the volume provided (redisinsight in the command above).
Next, point your browser to http://localhost:5540.
Redis Insight also provides a health check endpoint at http://localhost:5540/api/health/ to monitor the health of the running container.
Configuration environment variables
| Variable | Purpose | Default | Additional info |
|---|---|---|---|
| RI_APP_PORT | The port that Redis Insight listens on. |
| See https://expressjs.com/en/api.html#app.listen |
| RI_APP_HOST | The host that Redis Insight connects to. |
| See https://expressjs.com/en/api.html#app.listen |
| RI_SERVER_TLS_KEY | Private key for HTTPS. | n/a | Private key in PEM format. Can be a path to a file or a string in PEM format. |
| RI_SERVER_TLS_CERT | Certificate for supplied private key. | n/a | Public certificate in PEM format. Can be a path to a file or a string in PEM format. |
| RI_ENCRYPTION_KEY | Key to encrypt data with. | n/a | Available only for Docker. Redis insight stores sensitive information (database passwords, Workbench history, etc.) locally (using https://github.com/TryGhost/node-sqlite3). This variable allows you to store sensitive information encrypted using the specified encryption key. Note: The same encryption key should be provided for subsequent docker run commands with the same volume attached to decrypt the information. |
| RI_LOG_LEVEL | Configures the log level of the application. | info | Supported logging levels are prioritized from highest to lowest:
|
| RI_FILES_LOGGER | Logs to file. | true | By default, you can find log files in the following folders:
|
| RI_STDOUT_LOGGER | Logs to STDOUT. | true | |
| RI_PROXY_PATH | Configures a subpath for a proxy. | n/a | Available only for Docker. |
| RI_DATABASE_MANAGEMENT | When set to false, this disables the ability to manage database connections (adding, editing, or deleting). | true |
Preconfigure database connections
Redis Insight allows you to preconfigure database connections using environment variables or a JSON file, enabling centralized and efficient configuration. There are two ways to preconfigure database connections in Redis Insight Electron and Docker:
- Use environment variables.
- Use a JSON file.
Preconfigure database connections using environment variables
Redis Insight allows you to preconfigure database connections using environment variables.
NOTES:
- To configure multiple database connections, replace the asterisk (*) in each environment variable with a unique identifier for each database connection. If setting up only one connection, you can omit the asterisk, and Redis Insight will default to using 0 as the ID.
- If you modify environment variables, the changes will take effect after restarting Redis Insight.
- If you restart Redis Insight without these environment variables, all previously added database connections will be removed.
| Variable | Purpose | Default | Additional info |
|---|---|---|---|
| RI_REDIS_HOST* | Host of a Redis database. | N/A | |
| RI_REDIS_PORT* | Port of a Redis database. | 6379 | |
| RI_REDIS_ALIAS* | Alias of a database connection. | {host}:{port} | |
| RI_REDIS_USERNAME* | Username to connect to a Redis database. | default | |
| RI_REDIS_PASSWORD* | Password to connect to a Redis database. | No password | |
| RI_REDIS_TLS* | Indicates whether TLS certificates should be used to connect. | FALSE | Accepts TRUE or FALSE |
| RI_REDIS_TLS_CA_BASE64* | CA certificate in base64 format. | N/A | Specify a CA certificate in this environment variable or provide a file path using RI_REDIS_TLS_CA_PATH*. |
| RI_REDIS_TLS_CA_PATH* | Path to the CA certificate file. | N/A | |
| RI_REDIS_TLS_CERT_BASE64* | Client certificate in base64 format. | N/A | Specify a client certificate in this environment variable or provide a file path using RI_REDIS_TLS_CERT_PATH*. |
| RI_REDIS_TLS_CERT_PATH* | Path to the Client certificate file. | N/A | |
| RI_REDIS_TLS_KEY_BASE64* | Private key for the client certificate in base64 format. | N/A | Indicate a private key in this environment variable or use another variable to get it from a file. |
| RI_REDIS_TLS_KEY_PATH* | Path to private key file. | N/A |
Preconfigure database connections using a JSON file
Redis Insight also allows you to preconfigure database connections using a JSON file.
NOTES
- The JSON file format should match the one used when exporting database connections from Redis Insight.
- The
idfield in the JSON file should include unique identifiers to avoid conflicts for database connections. - Changes to the JSON file will take effect after restarting Redis Insight.
- If the JSON file is removed, all database connections added via the file will be removed.
Redis Insight API
http://localhost:5540/api/docs
更多相关 Docker 镜像与资源
以下是 redis/redisinsight 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
- redislabs/redisinsight Docker 镜像说明(RedisInsight 管理工具,Redis Labs 官方版本)
- oblakstudio/redisinsight Docker 镜像说明(RedisInsight 可视化管理,适合 Redis 数据浏览与调试)
- library/redis Docker 镜像说明(官方标准版本,适合通用场景)
- bitnami/redis Docker 镜像说明(企业级配置,适合生产环境)
- redislabs/redis Docker 镜像说明(官方实验与扩展版本)
Deployment & Usage Documentation
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 redisinsight 镜像标签
DockerHub 原生拉取命令
镜像拉取常见问题
功能
错误码
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务