jobs: add ams, karting, and cawnj-test
This commit is contained in:
parent
96afca40cb
commit
06d7fc079c
3 changed files with 135 additions and 0 deletions
45
jobs/nginx/anime-manga-soc.hcl
Normal file
45
jobs/nginx/anime-manga-soc.hcl
Normal file
|
@ -0,0 +1,45 @@
|
|||
job "nginx-ams" {
|
||||
datacenters = ["aperture"]
|
||||
|
||||
type = "service"
|
||||
|
||||
group "ams-web" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
port "http" {
|
||||
to = "80"
|
||||
}
|
||||
|
||||
port "https" {
|
||||
to = "443"
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
port = "http"
|
||||
|
||||
check {
|
||||
type = "http"
|
||||
path = "/"
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.nginx-ams.rule=Host(`amikon.me`,`www.amikon.me`)",
|
||||
"traefik.http.routers.nginx-ams.entrypoints=web,websecure",
|
||||
"traefik.http.routers.nginx-ams.tls.certresolver=lets-encrypt"
|
||||
]
|
||||
}
|
||||
|
||||
task "webserver" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "ghcr.io/dcuams/amikon-website"
|
||||
ports = ["http", "https"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
45
jobs/nginx/cawnj-test.hcl
Normal file
45
jobs/nginx/cawnj-test.hcl
Normal file
|
@ -0,0 +1,45 @@
|
|||
job "cawnj-test" {
|
||||
datacenters = ["aperture"]
|
||||
|
||||
type = "service"
|
||||
|
||||
group "cawnj-test" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
port "http" {
|
||||
to = "80"
|
||||
}
|
||||
|
||||
port "https" {
|
||||
to = "443"
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
port = "http"
|
||||
|
||||
check {
|
||||
type = "http"
|
||||
path = "/"
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.cawnj-test.rule=Host(`cawnj-test.redbrick.dcu.ie`)",
|
||||
"traefik.http.routers.cawnj-test.entrypoints=web,websecure",
|
||||
"traefik.http.routers.cawnj-test.tls.certresolver=lets-encrypt"
|
||||
]
|
||||
}
|
||||
|
||||
task "webserver" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "nginx"
|
||||
ports = ["http", "https"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
45
jobs/nginx/karting.hcl
Normal file
45
jobs/nginx/karting.hcl
Normal file
|
@ -0,0 +1,45 @@
|
|||
job "nginx-karting" {
|
||||
datacenters = ["aperture"]
|
||||
|
||||
type = "service"
|
||||
|
||||
group "karting-web" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
port "http" {
|
||||
to = "80"
|
||||
}
|
||||
|
||||
port "https" {
|
||||
to = "443"
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
port = "http"
|
||||
|
||||
check {
|
||||
type = "http"
|
||||
path = "/"
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.nginx-karting.rule=Host(`dcukartingsociety.ie`)",
|
||||
"traefik.http.routers.nginx-karting.entrypoints=web,websecure",
|
||||
"traefik.http.routers.nginx-karting.tls.certresolver=lets-encrypt"
|
||||
]
|
||||
}
|
||||
|
||||
task "webserver" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "ghcr.io/redbrick/karting"
|
||||
ports = ["http", "https"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue