From 2e6873619449a7e6450edaa703f2cb4679fc7312 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Tue, 24 Feb 2026 14:39:01 -0700 Subject: [PATCH] distributing better --- docker-compose.yml | 11 ++++++++--- nginx-lb.conf | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 90a6f51..1485e57 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,8 @@ services: volumes: - ./backend:/app - /app/_build + ports: + - 4001:4000 # http://localhost:4001/dev/dashboard/ healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"] interval: 10s @@ -49,6 +51,8 @@ services: volumes: - ./backend:/app - /app/_build + ports: + - 4002:4000 healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"] interval: 10s @@ -77,6 +81,8 @@ services: volumes: - ./backend:/app - /app/_build + ports: + - 4003:4000 healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"] interval: 10s @@ -89,7 +95,7 @@ services: volumes: - ./nginx-lb.conf:/etc/nginx/conf.d/default.conf ports: - - "4000:80" + - 4000:80 depends_on: - phoenix1 - phoenix2 @@ -103,7 +109,7 @@ services: volumes: - ./client:/app ports: - - "5173:5173" + - 5173:5173 depends_on: - nginx-lb @@ -113,4 +119,3 @@ services: command: ["--config=/etc/otel-collector-config.yaml"] volumes: - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml - diff --git a/nginx-lb.conf b/nginx-lb.conf index 9160aa2..62ef666 100644 --- a/nginx-lb.conf +++ b/nginx-lb.conf @@ -27,7 +27,7 @@ server { proxy_read_timeout 60s; } - location /api { + location /api { proxy_pass http://phoenix_backend; proxy_http_version 1.1; proxy_set_header Host $host;