feat: update components and hooks to use get_untracked for improved performance
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Nginx Reverse Proxy — handles /api and /ws routing behind Traefik
|
||||
# Nginx Reverse Proxy + Frontend Static Files
|
||||
# Routes /api and /ws to backend, serves frontend WASM directly
|
||||
proxy:
|
||||
image: registry.gitlab.com/mytheclipse-group/gmw/bete-proxy:latest
|
||||
container_name: imphenbot-proxy
|
||||
@@ -15,7 +16,7 @@ services:
|
||||
depends_on:
|
||||
- backend
|
||||
healthcheck:
|
||||
test: ["CMD", "nginx", "-t"]
|
||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1/"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
@@ -36,7 +37,6 @@ services:
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
WEBSERVER_PORT: 3000
|
||||
# Backend talks to gateway via Redis+Postgres, not directly — no depends_on needed
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
|
||||
interval: 30s
|
||||
@@ -61,7 +61,6 @@ services:
|
||||
NODE_ENV: production
|
||||
volumes:
|
||||
- ./recordings:/app/recordings
|
||||
# Gateway has no HTTP server — check if PID 1 (node) is alive
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "kill -0 1 || exit 1"]
|
||||
interval: 30s
|
||||
@@ -75,26 +74,6 @@ services:
|
||||
networks:
|
||||
- app-shared-net
|
||||
|
||||
# Frontend Service (React Dashboard) — Nginx serving static files
|
||||
frontend:
|
||||
image: registry.gitlab.com/mytheclipse-group/gmw/bete-frontend:latest
|
||||
container_name: imphenbot-frontend
|
||||
restart: unless-stopped
|
||||
# Use 127.0.0.1 instead of localhost — Alpine's BusyBox wget tries IPv6 first
|
||||
# for 'localhost' which fails since nginx only listens on IPv4
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
start_period: 5s
|
||||
retries: 3
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 32M
|
||||
networks:
|
||||
- app-shared-net
|
||||
|
||||
networks:
|
||||
app-shared-net:
|
||||
name: app-shared-net
|
||||
|
||||
Reference in New Issue
Block a user