configureEnvFile

Method
📦 Aspire.Hosting.Docker v17.0.0
interface DockerComposeEnvironmentResource {
// ... omitted for brevity
configureEnvFile(configure: callback): DockerComposeEnvironmentResource;
}

Signature

methodconfigureEnvFilebuilder
Configures the captured environment variables for the Docker Compose environment before they are written to the .env file.
configureEnvFile(configure: (obj: Dict<string,Aspire.Hosting.Docker/Aspire.Hosting.Docker.CapturedEnvironmentVariable>) => Promise<void>): DockerComposeEnvironmentResource
configure(obj: Dict<string,Aspire.Hosting.Docker/Aspire.Hosting.Docker.CapturedEnvironmentVariable>) => Promise<void>A method that can be used for customizing the captured environment variables.
DockerComposeEnvironmentResource

Applies to

This method applies to the following types: