mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Merge pull request #1440 from nak3/fix-allocating-ports-example
[docs] Write allocate ports example accurately
This commit is contained in:
@@ -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" {}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user