Skip to content
DocsTry Aspire
DocsTry

configureEnvFile

Method
📦 Aspire.Hosting.Docker v13.4.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>
DockerComposeEnvironmentResource

Applies to

This method applies to the following types: