KeycloakResourceBuilderExtensions.WithDataBindMount Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a bind mount for the data folder to a Keycloak container resource.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.KeycloakResource> WithDataBindMount (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.KeycloakResource> builder, string source);
static member WithDataBindMount : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.KeycloakResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.KeycloakResource>
<Extension()>
Public Function WithDataBindMount (builder As IResourceBuilder(Of KeycloakResource), source As String) As IResourceBuilder(Of KeycloakResource)
- builder
- IResourceBuilder<KeycloakResource>
The resource builder.
- source
- String
The source directory on the host to mount into the container.
The IResourceBuilder<T>.
Use a bind mount
var keycloak = builder.AddKeycloak("keycloak")
.WithDataBindMount("mydata");
The source directory is mounted at /opt/keycloak/data in the container.