namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
masterKeyIResourceBuilder<ParameterResource>optionalThe parameter used to provide the master key for the Meilisearch. If null a random master key will be generated.
portint?optionalThe host port to bind the underlying container to.
Returns
IResourceBuilder<MeilisearchResource> A reference to the ApplicationModel.IResourceBuilder`1.
Remarks
Add an Meilisearch container to the application model and reference it in a .NET project.
var builder =DistributedApplication.CreateBuilder(args);
var meilisearch =builder.AddMeilisearch("meilisearch");
sourcestringThe source directory on the host to mount into the container.
Returns
IResourceBuilder<MeilisearchResource> The ApplicationModel.IResourceBuilder`1.
Remarks
Add an Meilisearch container to the application model and reference it in a .NET project. Additionally, in this example a bind mount is added to the container to allow data to be persisted across container restarts.
var builder =DistributedApplication.CreateBuilder(args);
var meilisearch =builder.AddMeilisearch("meilisearch")
namestring?optionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
Returns
IResourceBuilder<MeilisearchResource> The ApplicationModel.IResourceBuilder`1.
Remarks
Add an Meilisearch container to the application model and reference it in a .NET project. Additionally, in this example a data volume is added to the container to allow data to be persisted across container restarts.
var builder =DistributedApplication.CreateBuilder(args);
var meilisearch =builder.AddMeilisearch("meilisearch")