Deploy.Resources Property

Definition

Represents the resource configurations for a deployable service within Docker.

[YamlDotNet.Serialization.YamlMember(Alias="resources")]
public Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.Resources? Resources { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="resources")>]
member this.Resources : Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.Resources with get, set
Public Property Resources As Resources

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The Resources class is used to define resources such as CPU and memory that are allocated to or reserved for a service. It includes configurations for both resource limits and reservations.

Applies to

See also