imbajin commented on code in PR #288: URL: https://github.com/apache/incubator-hugegraph-doc/pull/288#discussion_r1349894549
########## content/cn/docs/quickstart/hugegraph-hubble.md: ########## @@ -32,14 +32,40 @@ HugeGraph是一款面向分析型,支持批量操作的图数据库系统, 对于需要遍历全图的Gremlin任务,索引的创建与重建等耗时较长的异步任务,平台提供相应的任务管理功能,实现异步任务的统一的管理与结果查看。 -#### 2 部署 +### 2 部署 有三种方式可以部署`hugegraph-hubble` +- 使用docker (推荐) - 下载 toolchain 二进制包 - 源码编译 -- 使用docker -#### 2.1 下载 toolchain 二进制包 +#### 2.1 使用Docker (推荐) + +> **特别注意**: 如果使用 docker 启动 hubble,且 hubble 和 server 位于同一宿主机,在后续 hubble 页面中设置 graph 的 hostname 的时候请不要直接设置 `localhost/127.0.0.1`,这将指向 hubble 容器内部而非宿主机,导致无法连接到 server + +我们可以使用 `docker run -itd --name=hubble -p 8088:8088 hugegraph/hubble` 快速启动 [hubble](https://hub.docker.com/r/hugegraph/hubble). + +或者使用docker-compose启动hubble,另外如果hubble和graph在同一个docker网络下,可以使用graph的contain_name进行访问,而不需要宿主机的ip + +使用`docker-compose up -d`,`docker-compose.yml`如下: + +```yaml +version: '3' +services: + graph_hubble: Review Comment: ```suggestion server: ``` so as EN version -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
