Merge pull request #1440 from nak3/fix-allocating-ports-example
[docs] Write allocate ports example accurately
This commit is contained in:
commit
917b687d95
|
@ -171,8 +171,12 @@ You can allocate ports to your task using the port syntax described on the
|
|||
task "webservice" {
|
||||
driver = "docker"
|
||||
|
||||
port "http" {}
|
||||
port "https" {}
|
||||
resources {
|
||||
network {
|
||||
port "http" {}
|
||||
port "https" {}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue