docker compose port

DescriptionPrint the public port for a port binding
Usagedocker compose port [OPTIONS] SERVICE PRIVATE_PORT

Description

Prints the public port for a port binding

Options

OptionDefaultDescription
--indexIndex of the container if service has multiple replicas
--protocoltcptcp or udp