From 903df7ebfcc115a4ab97bb95c4ef9f5bbac5464c Mon Sep 17 00:00:00 2001 From: Xianlu Bird Date: Thu, 27 Apr 2017 04:52:14 +0800 Subject: [PATCH] Fix published&target description in ports section (#3016) --- compose/compose-file/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compose/compose-file/index.md b/compose/compose-file/index.md index e744bed5d6..2f9644963e 100644 --- a/compose/compose-file/index.md +++ b/compose/compose-file/index.md @@ -926,16 +926,16 @@ port (a random host port will be chosen). The long form syntax allows the configuration of additional fields that can't be expressed in the short form. -- `target`: the publicly exposed port -- `published`: the port inside the container +- `target`: the port inside the container +- `published`: the publicly exposed port - `protocol`: the port protocol (`tcp` or `udp`) - `mode`: `host` for publishing a host port on each node, or `ingress` for a swarm mode port which will be load balanced. ```none ports: - - target: 8080 - published: 80 + - target: 80 + published: 8080 protocol: tcp mode: host