Share feedback
Answers are generated based on the documentation.

docker compose port

DescriptionList port mappings or print the public port for a specific mapping for the service
Usagedocker compose port [OPTIONS] SERVICE [PRIVATE_PORT]

Description

List port mappings or print the public port for a specific mapping for the service

Options

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