From b894c33b98feb07f83ec74e2652014530c8e8042 Mon Sep 17 00:00:00 2001 From: nova Date: Mon, 14 Oct 2024 15:36:21 +0100 Subject: [PATCH] Add support for clubs & socs calendar --- jobs/user-projects/general/nova-timetable.hcl | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/jobs/user-projects/general/nova-timetable.hcl b/jobs/user-projects/general/nova-timetable.hcl index 3594e85..df7e365 100644 --- a/jobs/user-projects/general/nova-timetable.hcl +++ b/jobs/user-projects/general/nova-timetable.hcl @@ -14,6 +14,10 @@ job "nova-timetable" { to = 5432 } + port "cns" { + to = 2000 + } + port "frontend" { to = 3000 } @@ -23,9 +27,26 @@ job "nova-timetable" { } } + task "cns" { + driver = "docker" + + env { + PORT = "${NOMAD_PORT_cns}" + } + + config { + image = "ghcr.io/cheeselad/clubsandsocs-api:latest" + ports = ["cns"] + } + } + task "frontend" { driver = "docker" + env { + PORT = "${NOMAD_PORT_frontend}" + } + config { image = "ghcr.io/novanai/timetable-sync-frontend:latest" ports = ["frontend"] @@ -56,7 +77,10 @@ job "nova-timetable" { driver = "docker" env { + BACKEND_PORT = "${NOMAD_PORT_backend}" REDIS_ADDRESS = "${NOMAD_ADDR_redis}" + CNS_HOST = "${NOMAD_IP_cns}" + CNS_PORT = "${NOMAD_PORT_cns}" } config {