You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zeus 3fdb138828 HowTo 4 years ago
.docker/mongodb create docker-compose mongo replica 4 years ago
images create docker-compose mongo replica 4 years ago
swarmlabconfig sudo pre post 4 years ago
.env create docker-compose mongo replica 4 years ago
LICENSE Initial commit 4 years ago
README.md HowTo 4 years ago
connect.mongo.sh create docker-compose mongo replica 4 years ago
docker-compose.yml create docker-compose mongo replica 4 years ago
run.sh create docker-compose mongo replica 4 years ago
sample.env create docker-compose mongo replica 4 years ago
stop.sh add stop 4 years ago

README.md

storage-mongo-replica

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