From 5b1932e7fdf204b6eabc6c785c58e2f81184a335 Mon Sep 17 00:00:00 2001 From: Aviram Hassan Date: Sun, 7 Jan 2024 18:18:41 +0200 Subject: [PATCH] fix ports frontend --- ip-visit-frontend/Dockerfile | 4 ++-- ip-visit-frontend/app.yaml | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ip-visit-frontend/Dockerfile b/ip-visit-frontend/Dockerfile index f53b07e..5eff0d0 100644 --- a/ip-visit-frontend/Dockerfile +++ b/ip-visit-frontend/Dockerfile @@ -53,9 +53,9 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static USER nextjs -EXPOSE 80 +EXPOSE 3000 -ENV PORT 80 +ENV PORT 3000 # set hostname to localhost ENV HOSTNAME "0.0.0.0" diff --git a/ip-visit-frontend/app.yaml b/ip-visit-frontend/app.yaml index 46e4e9b..8677f17 100644 --- a/ip-visit-frontend/app.yaml +++ b/ip-visit-frontend/app.yaml @@ -1,7 +1,7 @@ apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: Deployment metadata: - name: frontend + name: ip-visit-frontend spec: selector: matchLabels: @@ -23,22 +23,22 @@ spec: cpu: 200m memory: 200Mi ports: - - containerPort: 80 + - containerPort: 3000 livenessProbe: httpGet: - path: /health - port: 80 + path: / + port: 3000 initialDelaySeconds: 3 periodSeconds: 3 readinessProbe: httpGet: - path: /health - port: 80 + path: / + port: 3000 initialDelaySeconds: 3 periodSeconds: 3 env: - name: PORT - value: "80" + value: "3000" --- @@ -50,6 +50,6 @@ metadata: spec: ports: - port: 80 - targetPort: 80 + targetPort: 3000 selector: app: ip-visit-frontend \ No newline at end of file