DockerComposeEnvironmentExtensions
Class static net10.0
Provides extension methods for adding Docker Compose environment resources to the application model.
namespace Aspire.Hosting;
public static class DockerComposeEnvironmentExtensions{ // ...} 6 members
Methods6
Section titled MethodsAddDockerComposeEnvironment(IDistributedApplicationBuilder, string)extensionIResourceBuilder<DockerComposeEnvironmentResource> Adds a Docker Compose environment to the application model.
ConfigureComposeFile(IResourceBuilder<DockerComposeEnvironmentResource>, Action<ComposeFile>)extensionIResourceBuilder<DockerComposeEnvironmentResource> Configures the Docker Compose file for the environment resource.
ConfigureEnvFile(IResourceBuilder<DockerComposeEnvironmentResource>, Action<IDictionary<string, CapturedEnvironmentVariable>>)extensionIResourceBuilder<DockerComposeEnvironmentResource> Configures the captured environment variables for the Docker Compose environment before they are written to the .env file.
WithDashboard(IResourceBuilder<DockerComposeEnvironmentResource>, bool)extensionIResourceBuilder<DockerComposeEnvironmentResource> Enables the Aspire dashboard for telemetry visualization in this Docker Compose environment.
WithDashboard(IResourceBuilder<DockerComposeEnvironmentResource>, Action<IResourceBuilder<DockerComposeAspireDashboardResource>>)extensionIResourceBuilder<DockerComposeEnvironmentResource> Configures the dashboard properties for this Docker Compose environment.
WithProperties(IResourceBuilder<DockerComposeEnvironmentResource>, Action<DockerComposeEnvironmentResource>)extensionIResourceBuilder<DockerComposeEnvironmentResource> Allows setting the properties of a Docker Compose environment resource.