From fbb082cf3144f22038f43fc6a08fbf2ea8cbd59d Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Thu, 12 Nov 2015 15:59:18 -0800 Subject: [PATCH] Adding the port hcl object to example --- command/init.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/command/init.go b/command/init.go index 356337ae8..c911c95cf 100644 --- a/command/init.go +++ b/command/init.go @@ -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" { + } } } }