Aspire.Hosting.MongoDB
Official
📦 Aspire.Hosting.MongoDBv13.4.07Functions
3Types
3 types and 13 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
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
withMongoExpressbuilderAdds a MongoExpress administration and development platform for MongoDB to the application model.
withMongoExpress(configureContainer?: (obj: MongoExpressContainerResource) => Promise<void>, containerName?: string): MongoDBServerResource