update port phù hợp là 8001 và 3011

This commit is contained in:
2026-04-02 10:33:05 +07:00
parent 088b03c36f
commit a571438459
7 changed files with 14 additions and 12 deletions
+4 -2
View File
@@ -13,7 +13,7 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .
# NEXT_PUBLIC_API_URL is baked in at build time via docker-compose build args
ARG NEXT_PUBLIC_API_URL=http://backend:8000
ARG NEXT_PUBLIC_API_URL=http://backend:8001
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
RUN mkdir -p /app/public && npm run build
@@ -32,6 +32,8 @@ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/next.config.js ./
EXPOSE 3000
EXPOSE 3011
ENV PORT=3011
CMD ["node", "server.js"]
+2 -2
View File
@@ -5,11 +5,11 @@ const nextConfig = {
return [
{
source: "/api/:path*",
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8000"}/api/:path*`,
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8001"}/api/:path*`,
},
{
source: "/ws/:path*",
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8000"}/ws/:path*`,
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8001"}/ws/:path*`,
},
];
},