fix: update port configuration to use 3000 for consistency across Docker and docker-compose

This commit is contained in:
faisolavolut 2025-10-21 15:10:11 +07:00
parent 71fe8cb697
commit 26fe86f01e
3 changed files with 5 additions and 5 deletions

View File

@ -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"]

View File

@ -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

View File

@ -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",