Update after some testing and validation
No "200" status for our healthchecks to validate job readiness. Workaround is to remove the check.
This commit is contained in:
parent
4d3c69a710
commit
2a7d91e333
2 changed files with 3 additions and 8 deletions
|
@ -24,7 +24,7 @@ job "traefik" {
|
||||||
task "traefik" {
|
task "traefik" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
image = "traefik:2.8"
|
image = "traefik"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|
|
@ -15,17 +15,12 @@ job "nova-timetable" {
|
||||||
service {
|
service {
|
||||||
port = "http"
|
port = "http"
|
||||||
name = "nova-timetable"
|
name = "nova-timetable"
|
||||||
check {
|
|
||||||
type = "http"
|
|
||||||
path = "/"
|
|
||||||
interval = "10s"
|
|
||||||
timeout = "2s"
|
|
||||||
}
|
|
||||||
|
|
||||||
tags = [
|
tags = [
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.http.routers.nova-timetable.rule=Host(`timetable.redbrick.dcu.ie`)",
|
"traefik.http.routers.nova-timetable.rule=Host(`timetable.redbrick.dcu.ie`)",
|
||||||
"traefik.http.routers.nova-timetable.tls=true",
|
"traefik.http.routers.nova-timetable.entrypoints=web,websecure",
|
||||||
|
"traefik.http.routers.nova-timetable.tls.certresolver=lets-encrypt",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue