docker compose port
Print the public port for a port binding.
Options
Name |
Type |
Default |
Description |
--index |
int |
1 |
index of the container if service has multiple replicas |
--protocol |
string |
tcp |
tcp or udp |
Description
Prints the public port for a port binding.