From 7896c42f72df67828cc12e8c9860dcbfda9f86fd Mon Sep 17 00:00:00 2001 From: Ahmed Date: Sun, 16 May 2021 04:07:37 +0200 Subject: [PATCH] Update service.mdx --- website/content/docs/job-specification/service.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/content/docs/job-specification/service.mdx b/website/content/docs/job-specification/service.mdx index 464d4d565..5ed1be7ee 100644 --- a/website/content/docs/job-specification/service.mdx +++ b/website/content/docs/job-specification/service.mdx @@ -579,13 +579,12 @@ configuration: job "example" { datacenters = ["dc1"] - network { - port "db" { - to = 6379 - } - } - group "cache" { + network { + port "db" { + to = 6379 + } + } task "redis" { driver = "docker" @@ -739,6 +738,7 @@ Or using `address_mode=driver` for `service` and `check` with numeric ports: ```hcl job "example" { datacenters = ["dc1"] + group "cache" { task "redis" {