mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
Adding the port hcl object to example
This commit is contained in:
committed by
Alex Dadgar
parent
c4a2a9ccc6
commit
fbb082cf31
@@ -123,6 +123,9 @@ job "example" {
|
||||
# Configure Docker driver with the image
|
||||
config {
|
||||
image = "redis:latest"
|
||||
port_map {
|
||||
db = 6379
|
||||
}
|
||||
}
|
||||
|
||||
# We must specify the resources required for
|
||||
@@ -133,7 +136,8 @@ job "example" {
|
||||
memory = 256 # 256MB
|
||||
network {
|
||||
mbits = 10
|
||||
dynamic_ports = ["6379"]
|
||||
port "db" {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user