add 11ty-website (#20)
This commit is contained in:
parent
50fd5db59e
commit
ff1b340c44
1 changed files with 46 additions and 0 deletions
46
jobs/nginx/11ty-website.hcl
Normal file
46
jobs/nginx/11ty-website.hcl
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
job "11ty-website" {
|
||||||
|
datacenters = ["aperture"]
|
||||||
|
type = "service"
|
||||||
|
|
||||||
|
group "nginx-11ty-website" {
|
||||||
|
count = 1
|
||||||
|
|
||||||
|
network {
|
||||||
|
port "http" {
|
||||||
|
to = 80
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
service {
|
||||||
|
port = "http"
|
||||||
|
|
||||||
|
check {
|
||||||
|
type = "http"
|
||||||
|
path = "/"
|
||||||
|
interval = "10s"
|
||||||
|
timeout = "2s"
|
||||||
|
}
|
||||||
|
|
||||||
|
tags = [
|
||||||
|
"traefik.enable=true",
|
||||||
|
"traefik.http.routers.nginx-11ty-website.rule=Host(`canary.redbrick.dcu.ie`)",
|
||||||
|
"traefik.http.routers.nginx-11ty-website.entrypoints=web,websecure",
|
||||||
|
"traefik.http.routers.nginx-11ty-website.tls.certresolver=lets-encrypt",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
task "webserver" {
|
||||||
|
driver = "docker"
|
||||||
|
|
||||||
|
config {
|
||||||
|
image = "ghcr.io/redbrick/11ty-website:latest"
|
||||||
|
ports = ["http"]
|
||||||
|
}
|
||||||
|
|
||||||
|
resources {
|
||||||
|
cpu = 100
|
||||||
|
memory = 500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue