nomad/jobs/user-projects/general/nova-timetable.hcl
2023-10-11 01:14:58 +01:00

41 lines
821 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"
check {
type = "http"
path = "/healthcheck"
interval = "10s"
timeout = "2s"
}
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"]
}
}
}
}