Use externally hosted version of cns-api
This commit is contained in:
parent
b894c33b98
commit
cdc89dff8d
1 changed files with 2 additions and 19 deletions
|
@ -14,10 +14,6 @@ job "nova-timetable" {
|
||||||
to = 5432
|
to = 5432
|
||||||
}
|
}
|
||||||
|
|
||||||
port "cns" {
|
|
||||||
to = 2000
|
|
||||||
}
|
|
||||||
|
|
||||||
port "frontend" {
|
port "frontend" {
|
||||||
to = 3000
|
to = 3000
|
||||||
}
|
}
|
||||||
|
@ -27,19 +23,6 @@ job "nova-timetable" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task "cns" {
|
|
||||||
driver = "docker"
|
|
||||||
|
|
||||||
env {
|
|
||||||
PORT = "${NOMAD_PORT_cns}"
|
|
||||||
}
|
|
||||||
|
|
||||||
config {
|
|
||||||
image = "ghcr.io/cheeselad/clubsandsocs-api:latest"
|
|
||||||
ports = ["cns"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task "frontend" {
|
task "frontend" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
|
@ -79,8 +62,8 @@ job "nova-timetable" {
|
||||||
env {
|
env {
|
||||||
BACKEND_PORT = "${NOMAD_PORT_backend}"
|
BACKEND_PORT = "${NOMAD_PORT_backend}"
|
||||||
REDIS_ADDRESS = "${NOMAD_ADDR_redis}"
|
REDIS_ADDRESS = "${NOMAD_ADDR_redis}"
|
||||||
CNS_HOST = "${NOMAD_IP_cns}"
|
CNS_HOST = "clubsandsocs.jakefarrell.ie"
|
||||||
CNS_PORT = "${NOMAD_PORT_cns}"
|
CNS_PORT = "443"
|
||||||
}
|
}
|
||||||
|
|
||||||
config {
|
config {
|
||||||
|
|
Loading…
Reference in a new issue