distributing better
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user