Skip to content

Commit

Permalink
Fix mongoDB version
Browse files Browse the repository at this point in the history
Signed-off-by: DongYoung Kim <kwx4957@gmail.com>
  • Loading branch information
kwx4957 committed Nov 15, 2024
1 parent f99e183 commit 4d6a8d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ docker pull mongo:5

docker network create mongo-cluster

docker run -d --net mongo-cluster -p 27015:27015 --name m1 mongo:4.2 mongod --replSet rs0 --port 27015
docker run -d --net mongo-cluster -p 27016:27016 --name m2 mongo:4.2 mongod --replSet rs0 --port 27016
docker run -d --net mongo-cluster -p 27017:27017 --name m3 mongo:4.2 mongod --replSet rs0 --port 27017
docker run -d --net mongo-cluster -p 27015:27015 --name m1 mongo:5 mongod --replSet rs0 --port 27015
docker run -d --net mongo-cluster -p 27016:27016 --name m2 mongo:5 mongod --replSet rs0 --port 27016
docker run -d --net mongo-cluster -p 27017:27017 --name m3 mongo:5 mongod --replSet rs0 --port 27017
```

Step-2: Add hosts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ docker pull mongo:5

docker network create mongo-cluster

docker run -d --net mongo-cluster -p 27015:27015 --name m1 mongo:4.2 mongod --replSet rs0 --port 27015
docker run -d --net mongo-cluster -p 27016:27016 --name m2 mongo:4.2 mongod --replSet rs0 --port 27016
docker run -d --net mongo-cluster -p 27017:27017 --name m3 mongo:4.2 mongod --replSet rs0 --port 27017
docker run -d --net mongo-cluster -p 27015:27015 --name m1 mongo:5 mongod --replSet rs0 --port 27015
docker run -d --net mongo-cluster -p 27016:27016 --name m2 mongo:5 mongod --replSet rs0 --port 27016
docker run -d --net mongo-cluster -p 27017:27017 --name m3 mongo:5 mongod --replSet rs0 --port 27017
```

Step-2: Add hosts
Expand Down

0 comments on commit 4d6a8d2

Please sign in to comment.