如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
dejavu是Elasticsearch的缺失Web UI,旨在解决传统UI(如Kibana)响应性不足、部署笨重的问题。采用100%客户端渲染技术,实现无页面刷新、无限滚动、实时更新等现代特性,支持以Docker镜像、Chrome扩展或托管应用形式部署。核心功能包括数据可视化浏览、JSON/CSV数据导入、搜索UI可视化构建及多索引管理,适用于开发者和数据分析师高效管理Elasticsearch数据。
支持连接Elasticsearch集群中的任意索引,并本地缓存已连接索引,便于再次访问时快速加载。
提供直观的字段级筛选和全局搜索,支持隐藏无关数据,筛选结果可导出为JSON或CSV文件,简化数据筛选与分析流程。
支持分页浏览(可自定义页面大小)、多索引/类型数据浏览,支持单条或批量数据编辑及删除,适配大规模数据集浏览需求。
通过向导式配置界面,直接导入JSON或CSV文件到Elasticsearch,并支持从GUI定义字段映射关系。
支持通过可视化界面设计搜索UI,测试搜索相关性,生成代码可导出至codesandbox,加速搜索功能开发与测试。
基本部署
bashdocker run -p 1358:1358 -d appbaseio/dejavu
启动后访问 http://localhost:1358 即可使用。
指定版本部署
如需使用特定版本(如3.3.0):
bashdocker run -p 1358:1358 -d appbaseio/dejavu:3.3.0
Elasticsearch需启用CORS以允许dejavu访问,修改elasticsearch.yml配置文件:
yamlhttp.port: 9200 http.cors.allow-origin: 'http://localhost:1358' # 根据部署方式调整(如Chrome扩展需改为扩展ID) http.cors.enabled: true http.cors.allow-headers: X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization http.cors.allow-credentials: true
不同版本Elasticsearch的Docker启动命令
bashdocker run --name elasticsearch -p 9200:9200 -d elasticsearch:2 -Des.http.port=9200 -Des.http.cors.allow-origin="http://localhost:1358" -Des.http.cors.enabled=true -Des.http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -Des.http.cors.allow-credentials=true
bashdocker run --name elasticsearch -p 9200:9200 -d elasticsearch:5 -E http.port=9200 -E http.cors.allow-origin="http://localhost:1358" -E http.cors.enabled=true -E http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -E http.cors.allow-credentials=true
bashdocker run -p 9200:9200 -d docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.4 -Ehttp.port=9200 -Ehttp.cors.enabled=true -Ehttp.cors.allow-origin=http://localhost:1358 -Ehttp.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -Ehttp.cors.allow-credentials=true
bashdocker run -d --rm --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "http.cors.enabled=true" -e "http.cors.allow-origin=*" -e "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization" -e "http.cors.allow-credentials=true" docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.1
除Docker外,还可通过托管应用或Chrome扩展使用,对应CORS配置中的allow-origin需调整为托管域名或扩展ID。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务