Aspire.Hosting.MongoDB
Official
📦 Aspire.Hosting.MongoDB v13.2.0-preview.1.26159.1 7 Functions
3 Types
3 types and 23 members
Types
Functions
function
addDatabase builder Adds a MongoDB database resource
addDatabase(name: string, databaseName?: string): MongoDBDatabaseResource function
addMongoDB builder Adds a MongoDB container resource
addMongoDB(name: string, port?: number, userName?: ParameterResource, password?: ParameterResource): MongoDBServerResource function
withDataBindMount builder Adds a bind mount for the MongoDB data folder
withDataBindMount(source: string, isReadOnly?: boolean): MongoDBServerResource function
withDataVolume builder Adds a named volume for the MongoDB data folder
withDataVolume(name?: string, isReadOnly?: boolean): MongoDBServerResource function
withHostPort builder Sets the host port for the Mongo Express resource
withHostPort(port: number): MongoExpressContainerResource function
withInitFiles builder Copies init files into a MongoDB container
withInitFiles(source: string): MongoDBServerResource function
withMongoExpress builder Adds a MongoExpress administration platform for MongoDB
withMongoExpress(configureContainer?: (obj: MongoExpressContainerResource) => void, containerName?: string): MongoDBServerResource