docker compose port
| Description | List port mappings or print the public port for a specific mapping for the service |
|---|---|
| Usage | docker compose port [OPTIONS] SERVICE [PRIVATE_PORT] |
Description
List port mappings or print the public port for a specific mapping for the service
Options
| Option | Default | Description |
|---|---|---|
--index | Index of the container if service has multiple replicas | |
--protocol | tcp | tcp or udp |