discover mongodb replicaSet members.
see example
- start an etcd server
- start mongodb alongside with mongo-discovery
- when the members count is bigger than
CLUSTER_SIZE
,mongo-discovery will try to init mongodb replicaset with all members. - start/stop/reconfigure container to add/remove/reconfigure member
see configs for all available envs
MEMBER_NAME
name of this replicaset memberMEMBER_HOST
host/ip:port of this replicaset member, eg:172.28.232.235:27017ETCD_ENDPOINTS
etcd discovery endpoints eg: http://172.28.232.235:3379,http://172.28.232.235:3379MONGO_REPLICA_NAME
name of replicasetMONGO_USER_NAME
mongodb admin user nameMONGO_PASSWORD
mongodb admin user password