Add cns support to nova-timetable job (#63)
This commit is contained in:
parent
fe6f66754d
commit
33b05a1d3e
1 changed files with 7 additions and 0 deletions
|
@ -26,6 +26,10 @@ job "nova-timetable" {
|
||||||
task "frontend" {
|
task "frontend" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
|
env {
|
||||||
|
PORT = "${NOMAD_PORT_frontend}"
|
||||||
|
}
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "ghcr.io/novanai/timetable-sync-frontend:latest"
|
image = "ghcr.io/novanai/timetable-sync-frontend:latest"
|
||||||
ports = ["frontend"]
|
ports = ["frontend"]
|
||||||
|
@ -56,7 +60,9 @@ job "nova-timetable" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
env {
|
env {
|
||||||
|
BACKEND_PORT = "${NOMAD_PORT_backend}"
|
||||||
REDIS_ADDRESS = "${NOMAD_ADDR_redis}"
|
REDIS_ADDRESS = "${NOMAD_ADDR_redis}"
|
||||||
|
CNS_ADDRESS = "https://clubsandsocs.jakefarrell.ie"
|
||||||
}
|
}
|
||||||
|
|
||||||
config {
|
config {
|
||||||
|
@ -133,6 +139,7 @@ POSTGRES_PASSWORD={{ key "user-projects/nova/db/password" }}
|
||||||
POSTGRES_DB={{ key "user-projects/nova/db/name" }}
|
POSTGRES_DB={{ key "user-projects/nova/db/name" }}
|
||||||
POSTGRES_HOST={{ env "NOMAD_IP_db" }}
|
POSTGRES_HOST={{ env "NOMAD_IP_db" }}
|
||||||
POSTGRES_PORT={{ env "NOMAD_HOST_PORT_db" }}
|
POSTGRES_PORT={{ env "NOMAD_HOST_PORT_db" }}
|
||||||
|
CNS_ADDRESS="https://clubsandsocs.jakefarrell.ie"
|
||||||
EOH
|
EOH
|
||||||
destination = "local/.env"
|
destination = "local/.env"
|
||||||
env = true
|
env = true
|
||||||
|
|
Loading…
Reference in a new issue