Aspire.Hosting.MongoDB
Official
📦 Aspire.Hosting.MongoDBv13.6.015Functions
5Types
5 types and 24 members
Types
Functions
method
addDatabasebuilderAdds a MongoDB database to the application model.
addDatabase(name: string, databaseName?: string): MongoDBDatabaseResourcemethod
addMongoDBbuilderAdds a MongoDB container resource
addMongoDB(name: string, port?: number, userName?: ParameterResource, password?: ParameterResource): MongoDBServerResourcemethod
addMongoDBReplicaSetbuilderAdds a MongoDB replica set resource to the application model.
addMongoDBReplicaSet(name: string, userName?: ParameterResource, password?: ParameterResource): MongoDBReplicaSetResourcemethod
withBindIpAllbuilderConfigures the MongoDB server to bind to and listen on all network interfaces.
withBindIpAll(): MongoDBServerResourcemethod
withDataBindMountbuilderAdds a bind mount for the data folder to a MongoDB container resource.
withDataBindMount(source: string, isReadOnly?: boolean): MongoDBServerResourcemethod
withDataVolumebuilderAdds a named volume for the data folder to a MongoDB container resource.
withDataVolume(name?: string, isReadOnly?: boolean): MongoDBServerResourcemethod
withHostPortbuilderConfigures the host port that the Mongo Express resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): MongoExpressContainerResourcemethod
withInitFilesbuilderCopies init files into a MongoDB container resource.
withInitFiles(source: string): MongoDBServerResourcemethod
withKeyFilebuilderSets up a keyfile for internal authentication between members of a MongoDB replica set, with the specified `keyValue` as the content of the file.
withKeyFile(keyValue: IExpressionValue, keyFilePath?: string): MongoDBServerResourcemethod
withMemberbuilderAdds a MongoDB server resource as a member of the replica set.
withMember(member: MongoDBServerResource): MongoDBReplicaSetResourcemethod
withMongoExpressbuilderAdds a MongoExpress administration and development platform for MongoDB to the application model.
withMongoExpress(configureContainer?: (obj: MongoExpressContainerResource) => Promise<void>, containerName?: string): MongoDBServerResourcemethod
withReplbuilderAdds a REPL command that opens an authenticated MongoDB shell in the dashboard terminal dock.
withRepl(): MongoDBServerResourcemethod
withReplicaSetbuilderConfigures and initializes the MongoDB server as a single-member replica set for local development.
withReplicaSet(name?: string): MongoDBServerResourcemethod
withTlsAllowInvalidCertificatesbuilderConfigures the MongoDB server to accept TLS connections whose peer certificate cannot be validated, by passing `--tlsAllowInvalidCertificates` to `mongod`.
withTlsAllowInvalidCertificates(): MongoDBServerResourcemethod
withTlsModebuilderConfigures the `--tlsMode` the MongoDB server is started with when TLS is active.
withTlsMode(mode?: MongoDBTlsMode): MongoDBServerResource