aboutsummaryrefslogtreecommitdiff
path: root/app/deployment/science.hcl
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-12-28 10:49:09 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-12-28 10:49:09 +0100
commita2f8e11d06f5232e1100fe278fc579c80f9970d0 (patch)
tree8d494dc0b5d486ef83673e1f525c1492601f1b92 /app/deployment/science.hcl
parent48db0185a45e8682ab7dac53e836d6114c54b35e (diff)
downloadinfrastructure-a2f8e11d06f5232e1100fe278fc579c80f9970d0.tar.gz
infrastructure-a2f8e11d06f5232e1100fe278fc579c80f9970d0.zip
Migrate plume+diagnet+web_static
Diffstat (limited to 'app/deployment/science.hcl')
-rw-r--r--app/deployment/science.hcl11
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 {