diff --git a/jobs/user-projects/general/nova-timetable.hcl b/jobs/user-projects/general/nova-timetable.hcl new file mode 100644 index 0000000..76611c3 --- /dev/null +++ b/jobs/user-projects/general/nova-timetable.hcl @@ -0,0 +1,40 @@ +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 = "/" + interval = "10s" + timeout = "2s" + } + + tags = [ + "traefik.enable=true", + "traefik.http.routers.nova-timetable.rule=Host(`timetable.redbrick.dcu.ie`)", + "traefik.http.routers.nova-timetable.tls=true", + ] + } + + task "python-application" { + driver = "docker" + config { + image = "novanai/timetable-sync" + ports = ["http"] + } + } + } +}