From 2fc149c84b43016a848e676bf921835fcdd900cd Mon Sep 17 00:00:00 2001 From: kjs Date: Sat, 11 Apr 2026 22:21:11 +0900 Subject: [PATCH] chore: Update Docker configuration for frontend deployment - Added SERVER_API_URL argument to the Dockerfile for backend API integration. - Updated docker-compose.yml to include SERVER_API_URL for the frontend service. These changes aim to ensure proper communication between the frontend and backend services during deployment. --- docker/deploy/docker-compose.yml | 1 + docker/deploy/frontend.Dockerfile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docker/deploy/docker-compose.yml b/docker/deploy/docker-compose.yml index e0984a9e..115aef91 100644 --- a/docker/deploy/docker-compose.yml +++ b/docker/deploy/docker-compose.yml @@ -42,6 +42,7 @@ services: dockerfile: ../docker/deploy/frontend.Dockerfile args: - NEXT_PUBLIC_API_URL=https://api.vexplor.com/api + - SERVER_API_URL=http://backend:3001 container_name: pms-frontend-prod restart: always environment: diff --git a/docker/deploy/frontend.Dockerfile b/docker/deploy/frontend.Dockerfile index 5accb6c4..de8df2a9 100644 --- a/docker/deploy/frontend.Dockerfile +++ b/docker/deploy/frontend.Dockerfile @@ -23,6 +23,10 @@ ENV NEXT_TELEMETRY_DISABLED 1 ARG NEXT_PUBLIC_API_URL=https://api.vexplor.com/api ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL +# Next.js rewrites 프록시용 (빌드 시 routes-manifest.json에 포함됨) +ARG SERVER_API_URL=http://backend:3001 +ENV SERVER_API_URL=$SERVER_API_URL + # Build the application ENV DISABLE_ESLINT_PLUGIN=true RUN npm run build