distributing better

This commit is contained in:
2026-02-24 14:39:01 -07:00
parent 58ee1db696
commit 2e68736194
2 changed files with 9 additions and 4 deletions

View File

@@ -21,6 +21,8 @@ services:
volumes: volumes:
- ./backend:/app - ./backend:/app
- /app/_build - /app/_build
ports:
- 4001:4000 # http://localhost:4001/dev/dashboard/
healthcheck: healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"] test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"]
interval: 10s interval: 10s
@@ -49,6 +51,8 @@ services:
volumes: volumes:
- ./backend:/app - ./backend:/app
- /app/_build - /app/_build
ports:
- 4002:4000
healthcheck: healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"] test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"]
interval: 10s interval: 10s
@@ -77,6 +81,8 @@ services:
volumes: volumes:
- ./backend:/app - ./backend:/app
- /app/_build - /app/_build
ports:
- 4003:4000
healthcheck: healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"] test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"]
interval: 10s interval: 10s
@@ -89,7 +95,7 @@ services:
volumes: volumes:
- ./nginx-lb.conf:/etc/nginx/conf.d/default.conf - ./nginx-lb.conf:/etc/nginx/conf.d/default.conf
ports: ports:
- "4000:80" - 4000:80
depends_on: depends_on:
- phoenix1 - phoenix1
- phoenix2 - phoenix2
@@ -103,7 +109,7 @@ services:
volumes: volumes:
- ./client:/app - ./client:/app
ports: ports:
- "5173:5173" - 5173:5173
depends_on: depends_on:
- nginx-lb - nginx-lb
@@ -113,4 +119,3 @@ services:
command: ["--config=/etc/otel-collector-config.yaml"] command: ["--config=/etc/otel-collector-config.yaml"]
volumes: volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml