docs/compose/reference/port.md

496 B

description keywords menu title
Prints the public port for a port binding.s
fig, composition, compose, docker, orchestration, cli, port
main
identifier parent
port.compose smn_compose_cli
port

port

Usage: port [options] SERVICE PRIVATE_PORT

Options:
--protocol=proto  tcp or udp [default: tcp]
--index=index     index of the container if there are multiple
                  instances of a service [default: 1]

Prints the public port for a port binding.