Skip to content

Commit

Permalink
document support for port's host_ip in "long syntax"
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed May 25, 2021
1 parent 002f33d commit 151c35e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions schema/compose-spec.json
Expand Up @@ -316,6 +316,7 @@
"type": "object",
"properties": {
"mode": {"type": "string"},
"host_ip": {"type": "string"},
"target": {"type": "integer"},
"published": {"type": "integer"},
"protocol": {"type": "string"}
Expand Down
2 changes: 2 additions & 0 deletions spec.md
Expand Up @@ -1491,12 +1491,14 @@ expressed in the short form.

- `target`: the container port
- `published`: the publicly exposed port
- `host_ip`: the Host IP mapping, unspecified means all network interfaces (`0.0.0.0`)
- `protocol`: the port protocol (`tcp` or `udp`), unspecified means any protocol
- `mode`: `host` for publishing a host port on each node, or `ingress` for a port to be load balanced.

```yml
ports:
- target: 80
host_ip: 127.0.0.1
published: 8080
protocol: tcp
mode: host
Expand Down

0 comments on commit 151c35e

Please sign in to comment.