aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-12-25 11:21:41 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-12-25 11:21:41 +0100
commit1624b348dfcfc0447980064eccc863448d17082d (patch)
tree9e42daa7d25d9c9198586be987d1e3d69d2d6404 /app
parent8625a9af75c93c103d7378c824f66ebc397e6180 (diff)
downloadinfrastructure-1624b348dfcfc0447980064eccc863448d17082d.tar.gz
infrastructure-1624b348dfcfc0447980064eccc863448d17082d.zip
Migrate platoo
Diffstat (limited to 'app')
-rw-r--r--app/deployment/platoo.hcl11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/deployment/platoo.hcl b/app/deployment/platoo.hcl
index 786a3f0..ffdda9e 100644
--- a/app/deployment/platoo.hcl
+++ b/app/deployment/platoo.hcl
@@ -9,14 +9,16 @@ job "platoo" {
}
group "core" {
+ network {
+ port "web_port" { to = 8080 }
+ }
+
task "nodejs" {
driver = "docker"
config {
image = "victormoi/platoo:v1"
force_pull = true
- port_map {
- web_port = 8080
- }
+ ports = [ "web_port" ]
}
template {
@@ -32,9 +34,6 @@ EOH
resources {
memory = 400
- network {
- port "web_port" {}
- }
}
service {