Skip to content
DocsTry Aspire
DocsTry

ComposeServicePort Properties

ClassProperties2 members
Represents a port mapping for a compose service.
PublishedPortSection titled PublishedPortnullableint?
Gets the port published on the host.
public int? PublishedPort { get; init; }
TargetPortSection titled TargetPortnullableint?
Gets the target port inside the container.
public int? TargetPort { get; init; }