aboutsummaryrefslogtreecommitdiff
path: root/nomad/web_static.hcl
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-04-21 12:38:15 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-04-21 12:38:15 +0200
commit1c4bc090fc737662740260a6ad88709b87d1b83c (patch)
tree5aa3ab76c28b7c24382070a7d898ee98642f3538 /nomad/web_static.hcl
parent4c2ae7f696b06b4f926c0115de63046686db6ef9 (diff)
downloadinfrastructure-1c4bc090fc737662740260a6ad88709b87d1b83c.tar.gz
infrastructure-1c4bc090fc737662740260a6ad88709b87d1b83c.zip
Improve webpull
Diffstat (limited to 'nomad/web_static.hcl')
-rw-r--r--nomad/web_static.hcl16
1 files changed, 12 insertions, 4 deletions
diff --git a/nomad/web_static.hcl b/nomad/web_static.hcl
index b3ad3e8..c935b2a 100644
--- a/nomad/web_static.hcl
+++ b/nomad/web_static.hcl
@@ -59,19 +59,27 @@ EOH
}
}
- /* To be replaced by a static site manager */
group "quentin" {
task "server" {
driver = "docker"
config {
- image = "superboum/amd64_blog:v19"
+ image = "superboum/amd64_webpull_ruby:v1"
port_map {
- web_port = 8043
+ web_port = 8080
}
}
+ template {
+ data = <<EOH
+WEBPULL_REPO="https://git.deuxfleurs.fr/quentin/quentin.dufour.io.git"
+WEBPULL_TOKEN="{{ key "secrets/web/quentin.dufour.io_token" | trimSpace }}"
+EOH
+ destination = "secrets/env"
+ env = true
+ }
+
resources {
- memory = 20
+ memory = 500
network {
port "web_port" {}
}