Use unique backend alias for assistant
All checks were successful
Deploy to VPS / test (push) Successful in 1m45s
Deploy to VPS / deploy (push) Successful in 15s

This commit is contained in:
Carlos Escalante
2026-07-14 18:50:28 -06:00
parent c527b3d6d0
commit 00e841ad3f

View File

@@ -37,7 +37,11 @@ services:
expose: expose:
- "8000" - "8000"
networks: networks:
- wealthysmart-network wealthysmart-network:
# Avoid the generic `backend` name, which is also used on the shared
# nginx network by another application.
aliases:
- wealthysmart-api
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
@@ -59,9 +63,8 @@ services:
restart: unless-stopped restart: unless-stopped
environment: environment:
NODE_ENV: production NODE_ENV: production
# Compose service names are the stable DNS names on this network. BACKEND_URL: http://wealthysmart-api:8000
BACKEND_URL: http://backend:8000 AGENT_URL: http://wealthysmart-api:8000/api/v1/agent/agui
AGENT_URL: http://backend:8000/api/v1/agent/agui
JWT_SECRET: ${SECRET_KEY} JWT_SECRET: ${SECRET_KEY}
COOKIE_DOMAIN: wealth.cescalante.dev COOKIE_DOMAIN: wealth.cescalante.dev
COOKIE_SECURE: "true" COOKIE_SECURE: "true"