From 69bd654946ab5512aa282bc8b74b654d80bf5245 Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Mon, 7 Oct 2024 16:48:05 +0100 Subject: Autodiscover cps-and-ncmp containers when load balancing - remove hard-coded container names from load balancer(nginx) and prometheus Issue-ID: CPS-2437 Change-Id: Ia64b949c2eb3e4d67e123b046e66d5bfdda2c801 Signed-off-by: halil.cakal --- docker-compose/config/nginx/nginx.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'docker-compose/config/nginx') diff --git a/docker-compose/config/nginx/nginx.conf b/docker-compose/config/nginx/nginx.conf index 7d6b997f77..6e9d102fed 100644 --- a/docker-compose/config/nginx/nginx.conf +++ b/docker-compose/config/nginx/nginx.conf @@ -21,9 +21,7 @@ http { # Add more server entries here for scaling or load balancing upstream cps-and-ncmp { least_conn; - server docker-compose-cps-and-ncmp-1:8080; - ### DEBUG: Disable next line for easier debugging on 1 instance (see also docker-compose.yml) - server docker-compose-cps-and-ncmp-2:8080; + server cps-and-ncmp:8080; } server { -- cgit 1.2.3-korg