From 91c5a705ab6c88483bc6d5644695d54521f7b500 Mon Sep 17 00:00:00 2001 From: HarrisChu <1726587+HarrisChu@users.noreply.github.com> Date: Wed, 15 Dec 2021 17:09:33 +0800 Subject: [PATCH 1/2] add console to add hosts --- docker-compose.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index c044e54..5ea12ef 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -323,6 +323,21 @@ services: restart: on-failure cap_add: - SYS_PTRACE + + console: + image: vesoft/nebula-console:nightly + entrypoint: "" + command: + - sh + - -c + - | + sleep 3 && + nebula-console -addr graphd -port 9669 -u root -p nebula -e 'ADD HOSTS "storage0":9779,"storage1":9779,"storage2":9779' && + sleep 36000 + depends_on: + - graphd + networks: + - nebula-net networks: nebula-net: From e493459c40aefddf7eaebaf2e3f78468e0f14f6b Mon Sep 17 00:00:00 2001 From: HarrisChu <1726587+HarrisChu@users.noreply.github.com> Date: Tue, 21 Dec 2021 10:07:25 +0800 Subject: [PATCH 2/2] fix typo --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 5ea12ef..8255b2e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -332,7 +332,7 @@ services: - -c - | sleep 3 && - nebula-console -addr graphd -port 9669 -u root -p nebula -e 'ADD HOSTS "storage0":9779,"storage1":9779,"storage2":9779' && + nebula-console -addr graphd -port 9669 -u root -p nebula -e 'ADD HOSTS "storaged0":9779,"storaged1":9779,"storaged2":9779' && sleep 36000 depends_on: - graphd