From 2745b53bc49495c35baf05c01509ba32ea4e1d04 Mon Sep 17 00:00:00 2001 From: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Date: Wed, 21 Feb 2024 10:39:54 +0000 Subject: [PATCH] ENGDOCS-1980 (#19352) --- content/compose/compose-file/05-services.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content/compose/compose-file/05-services.md b/content/compose/compose-file/05-services.md index 6a6daa57f3..15509baf1a 100644 --- a/content/compose/compose-file/05-services.md +++ b/content/compose/compose-file/05-services.md @@ -1408,18 +1408,21 @@ expressed in the short form. - `host_ip`: The Host IP mapping, unspecified means all network interfaces (`0.0.0.0`). - `protocol`: The port protocol (`tcp` or `udp`). Defaults to `tcp`. - `mode`: `host`: For publishing a host port on each node, or `ingress` for a port to be load balanced. Defaults to `ingress`. +- `name`: A human-readable name for the port, used to document it's usage within the service. ```yml ports: - - target: 80 + - name: http + target: 80 host_ip: 127.0.0.1 published: "8080" protocol: tcp mode: host - - target: 80 + - name: https + target: 443 host_ip: 127.0.0.1 - published: "8000-9000" + published: "8083-9000" protocol: tcp mode: host ```