nomad/jobs/user-projects/general/nova-timetable.hcl
James Hackett 2a7d91e333 Update after some testing and validation
No "200" status for our healthchecks to validate job readiness.
Workaround is to remove the check.
2023-10-08 02:17:55 +01:00

35 lines
699 B
HCL

job "nova-timetable" {
datacenters = ["aperture"]
type = "service"
group "nova-timetable" {
count = 1
network {
port "http" {
to = 80
}
}
service {
port = "http"
name = "nova-timetable"
tags = [
"traefik.enable=true",
"traefik.http.routers.nova-timetable.rule=Host(`timetable.redbrick.dcu.ie`)",
"traefik.http.routers.nova-timetable.entrypoints=web,websecure",
"traefik.http.routers.nova-timetable.tls.certresolver=lets-encrypt",
]
}
task "python-application" {
driver = "docker"
config {
image = "novanai/timetable-sync"
ports = ["http"]
}
}
}
}