From bf10946c80782f7ee7921109d8bba163e24462d5 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 19 Mar 2021 21:45:49 +0200 Subject: [PATCH] create docker-compose mongo replica --- .docker/mongodb/scripts/mongosetup.sh | 6 +++--- run.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.docker/mongodb/scripts/mongosetup.sh b/.docker/mongodb/scripts/mongosetup.sh index 989dd72..5192c2f 100644 --- a/.docker/mongodb/scripts/mongosetup.sh +++ b/.docker/mongodb/scripts/mongosetup.sh @@ -1,8 +1,8 @@ #!/bin/bash -MONGODB1=mongo1 -MONGODB2=mongo2 -MONGODB3=mongo3 +MONGODB1=swarmlabmongo1 +MONGODB2=swarmlabmongo2 +MONGODB3=swarmlabmongo3 echo "**********************************************" ${MONGODB1} echo "Waiting for startup.." diff --git a/run.sh b/run.sh index 29cfff0..5658b60 100644 --- a/run.sh +++ b/run.sh @@ -1,6 +1,6 @@ #!/bin/sh -docker-compose stop docker-compose down docker-compose rm +docker container rm swarmlabmongo1 swarmlabmongo2 swarmlabmongo3 docker-compose up -d