From 33b05a1d3e38d12b089a478a924f660fc897a4c3 Mon Sep 17 00:00:00 2001 From: nova <110734810+novanai@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:58:09 +0100 Subject: [PATCH] Add cns support to nova-timetable job (#63) --- jobs/user-projects/general/nova-timetable.hcl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jobs/user-projects/general/nova-timetable.hcl b/jobs/user-projects/general/nova-timetable.hcl index 3594e85..4c11b8b 100644 --- a/jobs/user-projects/general/nova-timetable.hcl +++ b/jobs/user-projects/general/nova-timetable.hcl @@ -26,6 +26,10 @@ job "nova-timetable" { task "frontend" { driver = "docker" + env { + PORT = "${NOMAD_PORT_frontend}" + } + config { image = "ghcr.io/novanai/timetable-sync-frontend:latest" ports = ["frontend"] @@ -56,7 +60,9 @@ job "nova-timetable" { driver = "docker" env { + BACKEND_PORT = "${NOMAD_PORT_backend}" REDIS_ADDRESS = "${NOMAD_ADDR_redis}" + CNS_ADDRESS = "https://clubsandsocs.jakefarrell.ie" } config { @@ -133,6 +139,7 @@ POSTGRES_PASSWORD={{ key "user-projects/nova/db/password" }} POSTGRES_DB={{ key "user-projects/nova/db/name" }} POSTGRES_HOST={{ env "NOMAD_IP_db" }} POSTGRES_PORT={{ env "NOMAD_HOST_PORT_db" }} +CNS_ADDRESS="https://clubsandsocs.jakefarrell.ie" EOH destination = "local/.env" env = true