fix: update port configuration to use 3000 for consistency across Docker and docker-compose
This commit is contained in:
parent
71fe8cb697
commit
26fe86f01e
|
|
@ -20,7 +20,7 @@ FROM node:20-alpine AS runner
|
|||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV PORT=3001
|
||||
ENV PORT=3000
|
||||
|
||||
# Install prod deps only for runtime
|
||||
COPY package*.json ./
|
||||
|
|
@ -31,5 +31,5 @@ COPY --from=builder /app/.next ./.next
|
|||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/next.config.* ./
|
||||
|
||||
EXPOSE 3001
|
||||
EXPOSE 3000
|
||||
CMD ["npm", "start"]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ services:
|
|||
image: ibank-frontend:latest
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3001
|
||||
- NEXT_PUBLIC_API_URL=http://localhost:3000
|
||||
ports:
|
||||
- "3001:3001"
|
||||
- "5836:3000"
|
||||
restart: unless-stopped
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"dev": "next dev -- -p 5836",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"generate:db-types": "node scripts/generate-db-types.js",
|
||||
|
|
|
|||
Loading…
Reference in New Issue