Add support for clubs & socs calendar

This commit is contained in:
nova 2024-10-14 15:36:21 +01:00
parent fe6f66754d
commit b894c33b98

View file

@ -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 {