aboutsummaryrefslogtreecommitdiff
path: root/nomad/web_static.hcl
diff options
context:
space:
mode:
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" {}
}