Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 3.deploy-nebula-graph-with-docker-compose.md #1126

Merged
merged 4 commits into from
Nov 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
`master`分支包含最新的未测试代码。请**不要**在生产环境使用此版本。

```bash
$ git clone -b v{{dockercompose.release}} https://github.com/vesoft-inc/nebula-docker-compose.git
$ git clone -b {{dockercompose.branch}} https://github.com/vesoft-inc/nebula-docker-compose.git
```

2. 切换至目录`nebula-docker-compose`。
Expand Down Expand Up @@ -175,24 +175,24 @@ $ docker-compose down
如果返回如下信息,表示已经成功停止服务。

```bash
Stopping nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_graphd2_1 ... done
Stopping nebula-docker-compose_graphd1_1 ... done
Stopping nebula-docker-compose_graphd_1 ... done
Stopping nebula-docker-compose_storaged1_1 ... done
Stopping nebula-docker-compose_graphd2_1 ... done
Stopping nebula-docker-compose_storaged2_1 ... done
Stopping nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_metad0_1 ... done
Stopping nebula-docker-compose_metad2_1 ... done
Stopping nebula-docker-compose_metad1_1 ... done
Removing nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_metad2_1 ... done
Removing nebula-docker-compose_graphd2_1 ... done
Removing nebula-docker-compose_graphd1_1 ... done
Removing nebula-docker-compose_graphd_1 ... done
Removing nebula-docker-compose_storaged1_1 ... done
Removing nebula-docker-compose_graphd2_1 ... done
Removing nebula-docker-compose_storaged2_1 ... done
Removing nebula-docker-compose_storaged0_1 ... done
Removing nebula-docker-compose_metad0_1 ... done
Removing nebula-docker-compose_metad2_1 ... done
Removing nebula-docker-compose_metad1_1 ... done
Removing nebula-docker-compose_metad2_1 ... done
Removing network nebula-docker-compose_nebula-net
```

Expand Down Expand Up @@ -224,10 +224,19 @@ graphd:

`9669:9669`表示内部的9669映射到外部的端口也是9669,下方的`19669`表示内部的19669映射到外部的端口是随机的。

### 如何更新Nebula Graph服务的Docker镜像?
### 如何升级/更新Nebula Graph服务的Docker镜像?

1. 在文件`nebula-docker-compose/docker-compose.yaml`中,找到所有服务的`image`并修改其值为相应的镜像版本。

2. 在目录`nebula-docker-compose`内执行命令`docker-compose pull`,更新Graph服务、Storage服务和Meta服务的镜像。

!!! note
执行`docker-compose pull`命令更新服务镜像前,确保已停止Nebula Graph。

在目录`nebula-docker-compose`内执行命令`docker-compose pull`,可以更新Graph服务、Storage服务和Meta服务的镜像
3. 执行命令`docker-compose up -d`启动Nebula Graph服务

4. 通过Nebula Console连接Nebula Graph后,分别执行命令`show hosts graph`、`show hosts storage`、`show hosts meta`查看各服务版本。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use upper case for keywords.


### 执行命令`docker-compose pull`报错`ERROR: toomanyrequests`

可能遇到如下错误:
Expand All @@ -244,17 +253,6 @@ graphd:
docker pull vesoft/nebula-console:{{console.branch}}
```

### 如何升级Nebula Graph?

更新Nebula Graph的Docker镜像并重启服务:

1. 在目录`nebula-docker-compose`内,执行命令`docker-compose pull`更新Nebula Graph的Docker镜像。

2. 执行命令`docker-compose down`停止Nebula Graph服务。

3. 执行命令`docker-compose up -d`启动Nebula Graph服务。


### 为什么更新nebula-docker-compose仓库(Nebula Graph 2.0.0-RC)后,无法通过端口`3699`连接Nebula Graph?

在 Nebula Graph 2.0.0-RC 版本,默认端口从`3699`改为`9669`。请使用`9669`端口连接,或修改配置文件`docker-compose.yaml`内的端口。
Expand Down