Skip to content
Docs Try Aspire
Docs Try

configureEnvFile

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

Signature

method configureEnvFile builder
Configures the captured environment variables written to the Docker Compose .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: