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