Watch Aspire live streamsDocsTry Aspire

DockerComposeEnvironmentResource Properties

ClassProperties3 members
Represents a Docker Compose environment resource that can host application resources.
Determines whether to include an Aspire dashboard for telemetry visualization in this environment.
public bool DashboardEnabled { get; set; }
DefaultNetworkNameSection titled DefaultNetworkNamenullablestring?
The name of an existing network to be used.
public string? DefaultNetworkName { get; set; }
ResourceTypeDisplayNameSection titled ResourceTypeDisplayNameoverridestring
Gets the default human-readable name of this resource's type.
public override string ResourceTypeDisplayName { get; }
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance.