Add workflow upstream configuration to Nginx and update docker-compose variables

This commit is contained in:
Simon Larsen 2024-09-18 11:58:29 +01:00
parent 94f0446802
commit 8d95d02ac6
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,10 @@ upstream worker {
server ${SERVER_WORKER_HOSTNAME}:${WORKER_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
upstream workflow {
server ${SERVER_WORKFLOW_HOSTNAME}:${WORKFLOW_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
upstream home {
server ${SERVER_HOME_HOSTNAME}:${HOME_PORT} weight=10 max_fails=3 fail_timeout=30s;
}

View File

@ -36,6 +36,7 @@ x-common-variables: &common-variables
SERVER_ISOLATED_VM_HOSTNAME: isolated-vm
SERVER_WORKER_HOSTNAME: worker
SERVER_HOME_HOSTNAME: home
SERVER_WORKFLOW_HOSTNAME: workflow
#Ports. Usually they don't need to change.
APP_PORT: ${APP_PORT}
@ -49,6 +50,7 @@ x-common-variables: &common-variables
ADMIN_DASHBOARD_PORT: ${ADMIN_DASHBOARD_PORT}
ISOLATED_VM_PORT: ${ISOLATED_VM_PORT}
WORKER_PORT: ${WORKER_PORT}
WORKFLOW_PORT: ${WORKFLOW_PORT}
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT: ${OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT}
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${OPENTELEMETRY_EXPORTER_OTLP_HEADERS}