Debian Codegraph @

docs/reference/compose_port.md

raw
1 # docker compose port
2
3 <!---MARKER_GEN_START-->
4 Prints the public port for a port binding
5
6 ### Options
7
8 | Name | Type | Default | Description |
9 |:-------------|:---------|:--------|:--------------------------------------------------------|
10 | `--dry-run` | `bool` | | Execute command in dry run mode |
11 | `--index` | `int` | `0` | Index of the container if service has multiple replicas |
12 | `--protocol` | `string` | `tcp` | tcp or udp |
13
14
15 <!---MARKER_GEN_END-->
16
17 ## Description
18
19 Prints the public port for a port binding