docker-compose port <service> <private_port>
Print the public port for a port binding
Arguments
| Name | Description |
|---|---|
service | |
private_port |
Options
| Name | Description |
|---|---|
--index <index> | Index of the container if service has multiple replicas |
--protocol <protocol> | Tcp or udp |