From f839380cd955ef2e952afd4b784f4f814793b424 Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Mon, 1 Nov 2021 14:45:34 +0800 Subject: [PATCH 1/2] Update 3.deploy-nebula-graph-with-docker-compose.md --- ...deploy-nebula-graph-with-docker-compose.md | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md b/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md index bcdd8e87673..02d4db85e9a 100644 --- a/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md +++ b/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md @@ -27,7 +27,7 @@ Using Docker Compose can quickly deploy Nebula Graph services based on the prepa The `master` branch contains the untested code for the latest Nebula Graph development release. **DO NOT** use this release in a production environment. ```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. Go to the `nebula-docker-compose` directory. @@ -40,7 +40,7 @@ Using Docker Compose can quickly deploy Nebula Graph services based on the prepa !!! Note - Update the [Nebula Graph images](#how-to-upgrade-nebula-graph-services) and [Nebula Console images](#how-to-update-the-nebula-console-client) first if they are out of date. + Update the [Nebula Graph images](#how-to-upgrade-or-update-the-docker-images-of-nebula-graph-services) and [Nebula Console images](#how-to-update-the-nebula-console-client) first if they are out of date. ```bash [nebula-docker-compose]$ docker-compose up -d @@ -178,24 +178,24 @@ $ docker-compose down The following information indicates you have successfully stopped the Nebula Graph services: ```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 ``` @@ -227,9 +227,18 @@ graphd: `9669:9669` indicates the internal port 9669 is uniformly mapped to external ports, while `19669` indicates the internal port 19669 is randomly mapped to external ports. -### How to update the docker images of Nebula Graph services +### How to upgrade or update the docker images of Nebula Graph services -To update the images of the Graph Service, Storage Service, and Meta Service, run `docker-compose pull` in the `nebula-docker-compose` directory. +1. In the `nebula-docker-compose/docker-compose.yaml` file, change all the `image` values to the required image version. + +2. In the `nebula-docker-compose` directory, run `docker-compose pull` to update the images of the Graph Service, Storage Service, and Meta Service. + + !!! note + Note that all the Nebula Graph services are stopped before running the command `docker-compose pull`. + +3. Run `docker-compose up -d` to start the Nebula Graph services again. + +4. After connecting to Nebula Graph with Nebula Console, run `show hosts graph`, `show hosts storage`, or `show hosts meta` to check the version of the responding service respectively. ### `ERROR: toomanyrequests` when `docker-compose pull` @@ -247,16 +256,6 @@ To update the Nebula Console client, run the following command. docker pull vesoft/nebula-console:{{console.branch}} ``` -### How to upgrade Nebula Graph services - -To upgrade Nebula Graph, update the Nebula Graph docker images and restart the services. - -1. In the `nebula-docker-compose` directory, run `docker-compose pull` to update the Nebula Graph docker images. - -2. Run `docker-compose down` to stop the Nebula Graph services. - -3. Run `docker-compose up -d` to start the Nebula Graph services again. - ### Why can’t I connect to Nebula Graph via port `3699` after updating the nebula-docker-compose repository (Nebula Graph 2.0.0-RC)? In Nebula Graph 2.0.0-RC release, the default port is changed from `3699` to `9669`. Please use port `9669` to connect to Nebula Graph, or modify the port in `docker-compose.yaml`. From a3cd80a1005d68255c34cab72cf609bbc36c461a Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Mon, 1 Nov 2021 16:57:11 +0800 Subject: [PATCH 2/2] Update 3.deploy-nebula-graph-with-docker-compose.md --- .../3.deploy-nebula-graph-with-docker-compose.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md b/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md index 02d4db85e9a..422fbed5ccb 100644 --- a/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md +++ b/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md @@ -27,7 +27,7 @@ Using Docker Compose can quickly deploy Nebula Graph services based on the prepa The `master` branch contains the untested code for the latest Nebula Graph development release. **DO NOT** use this release in a production environment. ```bash - $ git clone -b {{dockercompose.branch} https://github.com/vesoft-inc/nebula-docker-compose.git + $ git clone -b {{dockercompose.branch}} https://github.com/vesoft-inc/nebula-docker-compose.git ``` 2. Go to the `nebula-docker-compose` directory.