Skip to content

Commit

Permalink
build(deploy): update deploy doc & scripts;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Sep 3, 2021
1 parent c71f362 commit 4dcc7a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion deploy-scripts/run-mongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ docker run -d --name mongodb-server --network mongo-tier \
-e MONGODB_ROOT_PASSWORD=$MONGODB_ROOT_PASSWORD \
-e MONGODB_REPLICA_SET_MODE=primary \
-e MONGODB_REPLICA_SET_KEY=replicasetkey123 \
-e MONGODB_ENABLE_DIRECTORY_PER_DB=yes -e MONGODB_REPLICA_SET_NAME=rs0 \
-e MONGODB_ENABLE_DIRECTORY_PER_DB=yes -e MONGODB_REPLICA_SET_NAME=laf \
-e MONGODB_INITIAL_PRIMARY_HOST=mongodb-server \
-e MONGODB_ADVERTISED_HOSTNAME=mongodb-server \
-p 27017:27017 \
-v mongodb-data:/bitnami/mongodb bitnami/mongodb:latest
2 changes: 1 addition & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
- ALLOW_EMPTY_PASSWORD=yes
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_INITIAL_PRIMARY_HOST=mongo
- MONGODB_REPLICA_SET_NAME=rs0
- MONGODB_REPLICA_SET_NAME=laf
volumes:
- db-data:/bitnami/mongodb
ports:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
- ALLOW_EMPTY_PASSWORD=yes
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_INITIAL_PRIMARY_HOST=mongo
- MONGODB_REPLICA_SET_NAME=rs0
- MONGODB_REPLICA_SET_NAME=laf
volumes:
- db-data:/bitnami/mongodb
networks:
Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ docker run -d --name mongodb-server --network mongo-tier \
-e MONGODB_ROOT_PASSWORD=$MONGODB_ROOT_PASSWORD \
-e MONGODB_REPLICA_SET_MODE=primary \
-e MONGODB_REPLICA_SET_KEY=replicasetkey123 \
-e MONGODB_ENABLE_DIRECTORY_PER_DB=yes -e MONGODB_REPLICA_SET_NAME=rs0 \
-e MONGODB_ENABLE_DIRECTORY_PER_DB=yes -e MONGODB_REPLICA_SET_NAME=laf \
-e MONGODB_INITIAL_PRIMARY_HOST=mongodb-server \
-e MONGODB_ADVERTISED_HOSTNAME=mongodb-server \
-v mongodb-data:/bitnami/mongodb bitnami/mongodb:latest
Expand Down

0 comments on commit 4dcc7a0

Please sign in to comment.