From 4c8f81368c7d1521ede77deb40af366a491ca2eb Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Tue, 6 Jan 2026 09:23:50 +0100 Subject: [PATCH] fix(docker): add NEXT_PUBLIC_API_BASE_URL to frontend containers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When running in Docker, the frontend needs to use 'http://backend:8000' as the backend URL for Next.js rewrites. This env var is set to use the Docker service name for proper container-to-container communication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- docker-compose.deploy.yml | 1 + docker-compose.dev.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/docker-compose.deploy.yml b/docker-compose.deploy.yml index b7ed4a4..107fd90 100644 --- a/docker-compose.deploy.yml +++ b/docker-compose.deploy.yml @@ -288,6 +288,7 @@ services: environment: - NODE_ENV=production - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL} + - NEXT_PUBLIC_API_BASE_URL=http://backend:8000 depends_on: backend: condition: service_healthy diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index da9f4a7..9905b28 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -249,6 +249,7 @@ services: environment: - NODE_ENV=development - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL} + - NEXT_PUBLIC_API_BASE_URL=http://backend:8000 depends_on: backend: condition: service_healthy