Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ConfigureEnvFile

Method
📦 Aspire.Hosting.Docker v17.0.0
func (DockerComposeEnvironmentResource) ConfigureEnvFile(configure func(obj *Dict[string, CapturedEnvironmentVariable])) DockerComposeEnvironmentResource

Signature

methodConfigureEnvFilebuilder
Configures the captured environment variables for the Docker Compose environment before they are written to the .env file.
ConfigureEnvFile(configure func(obj *Dict[string, CapturedEnvironmentVariable])) DockerComposeEnvironmentResource
configurefunc(obj *Dict[string, CapturedEnvironmentVariable])callbackA method that can be used for customizing the captured environment variables.
DockerComposeEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: