compose/docs/reference/compose_port.md
Max Proske 0b9fb4fef9 PRIVATE_PORT optional for docker compose port
Signed-off-by: Max Proske <max@mproske.com>
2026-09-11 11:35:18 +02:00

750 B

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