diff options
Diffstat (limited to 'app/deployment/science.hcl')
-rw-r--r-- | app/deployment/science.hcl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/deployment/science.hcl b/app/deployment/science.hcl index 8b13e3f..1aee7a8 100644 --- a/app/deployment/science.hcl +++ b/app/deployment/science.hcl @@ -9,6 +9,10 @@ job "science" { } group "diagnet" { + network { + port "web_port" { to = 8000 } + } + task "main" { driver = "docker" config { @@ -18,17 +22,12 @@ job "science" { "-chrome", "-chrome-interval", "60m", "-http", ":8000" ] - port_map { - web_port = 8000 - } + ports = [ "web_port" ] } resources { cpu = 1000 memory = 1200 - network { - port "web_port" {} - } } service { |