mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Merge pull request #9008 from luhhujbb/doc-portmap
[doc] fix deprecated port_map example
This commit is contained in:
@@ -157,16 +157,16 @@ will be mapped to the port in your container or virtual machine.
|
||||
```hcl
|
||||
group "app" {
|
||||
network {
|
||||
port "http" {}
|
||||
port "http" {
|
||||
to = 8080
|
||||
}
|
||||
}
|
||||
|
||||
task "example" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
port_map = {
|
||||
http = 8080
|
||||
}
|
||||
ports = ["http"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user