diff --git a/mongo/doc-db.go b/mongo/doc-db.go index ea6d034..73fbd07 100755 --- a/mongo/doc-db.go +++ b/mongo/doc-db.go @@ -34,7 +34,7 @@ func NewDocumentDB(config *Conf, opts ...mon.Option) (DocumentDBUseCase, error) connectionStringTemplate, config.Schema, authenticationURI, - config.Host, + fmt.Sprintf("%s:%s", config.Host, config.Port), ) connectUri, _ := url.Parse(connectionURI)