From 6b3069eef4b9e1601367f12ef82f6e2c2bc4b656 Mon Sep 17 00:00:00 2001 From: Carlos Escalante Date: Wed, 29 Apr 2026 22:31:16 -0600 Subject: [PATCH] Fix prod backend hostname collision on nginx-prod-network Frontend joins both wealthysmart-network-prod and nginx-prod-network (needed for nginx-proxy reverse proxy + TLS). Another container on nginx-prod-network is named "backend" too (receipts-backend-prod), so DNS resolved "backend" to a sibling app and the agent endpoint returned 404. Pin the agent/backend URLs to the unique container name wealthysmart-backend-prod. Co-Authored-By: Claude Opus 4.7 (1M context) --- docker-compose.prod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 896c7c4..e85a96b 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -57,8 +57,8 @@ services: restart: unless-stopped environment: NODE_ENV: production - BACKEND_URL: http://backend:8000 - AGENT_URL: http://backend:8000/api/v1/agent/agui + BACKEND_URL: http://wealthysmart-backend-prod:8000 + AGENT_URL: http://wealthysmart-backend-prod:8000/api/v1/agent/agui JWT_SECRET: ${SECRET_KEY} COOKIE_DOMAIN: wealth.cescalante.dev COOKIE_SECURE: "true"