Bind admin-ui to 0.0.0.0 so NPM can reach host port 3101.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2df465577f
commit
78300409a7
2 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ FROM node:20-alpine AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
ENV HOSTNAME=0.0.0.0
|
||||||
|
ENV PORT=3000
|
||||||
COPY --from=builder /app/apps/admin-ui/.next/standalone ./
|
COPY --from=builder /app/apps/admin-ui/.next/standalone ./
|
||||||
COPY --from=builder /app/apps/admin-ui/.next/static ./apps/admin-ui/.next/static
|
COPY --from=builder /app/apps/admin-ui/.next/static ./apps/admin-ui/.next/static
|
||||||
COPY --from=builder /app/apps/admin-ui/public ./apps/admin-ui/public
|
COPY --from=builder /app/apps/admin-ui/public ./apps/admin-ui/public
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,8 @@ services:
|
||||||
dockerfile: deploy/docker/Dockerfile.admin-ui
|
dockerfile: deploy/docker/Dockerfile.admin-ui
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
HOSTNAME: 0.0.0.0
|
||||||
|
PORT: "3000"
|
||||||
# Server-side rewrite target (Docker network)
|
# Server-side rewrite target (Docker network)
|
||||||
NEXT_PUBLIC_API_URL: http://master-api:3000
|
NEXT_PUBLIC_API_URL: http://master-api:3000
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue