Fix prod backend hostname collision on nginx-prod-network
All checks were successful
Deploy to VPS / deploy (push) Successful in 5s

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) <noreply@anthropic.com>
This commit is contained in:
Carlos Escalante
2026-04-29 22:31:16 -06:00
parent ead8fb8684
commit 6b3069eef4

View File

@@ -57,8 +57,8 @@ services:
restart: unless-stopped restart: unless-stopped
environment: environment:
NODE_ENV: production NODE_ENV: production
BACKEND_URL: http://backend:8000 BACKEND_URL: http://wealthysmart-backend-prod:8000
AGENT_URL: http://backend:8000/api/v1/agent/agui AGENT_URL: http://wealthysmart-backend-prod: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"