command: use correct port mapping syntax in examples

This commit is contained in:
Nick Ethier
2020-09-03 15:17:37 -04:00
committed by Seth Hoenig
parent 1c14f69853
commit f8aabc8bd2
5 changed files with 84 additions and 6 deletions

View File

@@ -3,7 +3,9 @@ job "example" {
group "cache" {
network {
port "db" {}
port "db" {
to = 6379
}
}
task "redis" {

View File

@@ -151,7 +151,9 @@ job "example" {
# https://www.nomadproject.io/docs/job-specification/network
#
network {
port "db" {}
port "db" {
to = 6379
}
}
# The "service" stanza instructs Nomad to register this task as a service

File diff suppressed because one or more lines are too long