From bdb0767ecc690f987fa4772a9fcffacb2dc0c6c3 Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 21 Mar 2021 20:46:24 +0200 Subject: [PATCH] HoeTo --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 26ca49a..9498d55 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,37 @@ ## Quickstart + +This is a quickstart guide of howto use this *LabInstance storage-mongo-replica* + +### HowTo use it + + +### Default Configuration + +- Mongo Port: 27017 + +- Mongo Root Username: swarmlab +- Mongo Root Password: swarmlab + +- Mongo Database: app_swarmlab +- Mongo Database Usename: app_swarmlab +- Mongo Database Password: app_swarmlab + +- Mongo ReplicaSet: rs0 + + +### Test it! + + +> +> MONGO_INITDB_ROOT_USERNAME=swarmlab +> MONGO_INITDB_ROOT_PASSWORD=swarmlab +> MONGO_INITDB_DATABASE=app_swarmlab +> MONGO_INITDB_USERNAME=app_swarmlab +> MONGO_INITDB_PASSWORD=app_swarmlab +> MONGO_REPLICA_SET_NAME=rs0 +> +> mongo "mongodb://localhost:30001,localhost:30002,localhost:30003/$MONGO_INITDB_DATABASE" -u $MONGO_INITDB_USERNAME +> mongo "mongodb://localhost:30001,localhost:30002,localhost:30003/app_swarmlab" -u app_swarmlab +>