Skip to content

Commit

Permalink
Add port_map to example job
Browse files Browse the repository at this point in the history
  • Loading branch information
towe75 committed Dec 8, 2019
1 parent 40eea76 commit 7ec8077
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ For now you can:
* [Nomad runtime environment](https://www.nomadproject.io/docs/runtime/environment.html) is populated
* use nomad alloc data in the container.
* bind mount custom volumes into the container
* publish ports
* monitor the memory consumption
* monitor CPU usage (might be buggy)
* container memory is limited to configured value
Expand Down Expand Up @@ -137,11 +138,18 @@ job "redis" {
config {
image = "docker://redis"
port_map {
redis = 6379
}
}
resources {
cpu = 500
memory = 256
network {
mbits = 20
port "redis" {}
}
}
}
}
Expand Down

0 comments on commit 7ec8077

Please sign in to comment.