distributing better
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ server {
|
|||||||
proxy_read_timeout 60s;
|
proxy_read_timeout 60s;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
proxy_pass http://phoenix_backend;
|
proxy_pass http://phoenix_backend;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Reference in New Issue
Block a user