# docker compose port List port mappings or print the public port for a specific mapping for the service ### Options | Name | Type | Default | Description | |:-------------|:---------|:--------|:--------------------------------------------------------| | `--dry-run` | `bool` | | Execute command in dry run mode | | `--index` | `int` | `0` | Index of the container if service has multiple replicas | | `--protocol` | `string` | `tcp` | tcp or udp | ## Description List port mappings or print the public port for a specific mapping for the service