From 7c4a4ec66f9b3c26c0954ab3f8294532f63c600d Mon Sep 17 00:00:00 2001 From: wizzdom Date: Tue, 10 Dec 2024 23:51:18 +0000 Subject: [PATCH] thecollegeview: migrate to phpfpm + nginx --- jobs/socs/mps-thecollegeview.hcl | 71 ++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git a/jobs/socs/mps-thecollegeview.hcl b/jobs/socs/mps-thecollegeview.hcl index 16cc9be..2ffa40f 100644 --- a/jobs/socs/mps-thecollegeview.hcl +++ b/jobs/socs/mps-thecollegeview.hcl @@ -41,12 +41,75 @@ job "mps-thecollegeview" { ] } - task "tcv-web" { + + task "tcv-nginx" { + driver = "docker" + config { + image = "nginx:alpine" + ports = ["http"] + volumes = [ + "local/nginx.conf:/etc/nginx/nginx.conf", + "/storage/nomad/mps-thecollegeview:/var/www/html/", + ] + } + resources { + cpu = 200 + memory = 100 + } + template { + data = <