Skip to content
Docs Try Aspire
Docs Try

ComposeServicePort Properties

Class Properties 2 members
Represents a port mapping for a compose service.
PublishedPort Section titled PublishedPort nullable int?
Gets the port published on the host.
public int? PublishedPort { get; init; }
TargetPort Section titled TargetPort nullable int?
Gets the target port inside the container.
public int? TargetPort { get; init; }