Deploy.RestartPolicy Property

Definition

Specifies the restart policy for a Docker service.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The RestartPolicy defines conditions under which the service containers will be restarted, as well as parameters like delay between restarts, maximum restart attempts, and a time window for evaluating restart conditions.

Applies to

See also