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.
This commit is contained in:
@@ -42,6 +42,7 @@ services:
|
|||||||
dockerfile: ../docker/deploy/frontend.Dockerfile
|
dockerfile: ../docker/deploy/frontend.Dockerfile
|
||||||
args:
|
args:
|
||||||
- NEXT_PUBLIC_API_URL=https://api.vexplor.com/api
|
- NEXT_PUBLIC_API_URL=https://api.vexplor.com/api
|
||||||
|
- SERVER_API_URL=http://backend:3001
|
||||||
container_name: pms-frontend-prod
|
container_name: pms-frontend-prod
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ ENV NEXT_TELEMETRY_DISABLED 1
|
|||||||
ARG NEXT_PUBLIC_API_URL=https://api.vexplor.com/api
|
ARG NEXT_PUBLIC_API_URL=https://api.vexplor.com/api
|
||||||
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
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
|
# Build the application
|
||||||
ENV DISABLE_ESLINT_PLUGIN=true
|
ENV DISABLE_ESLINT_PLUGIN=true
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user