Skip to content

Commit

Permalink
fix ports frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Jan 7, 2024
1 parent 37eea96 commit 5b1932e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ip-visit-frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
16 changes: 8 additions & 8 deletions ip-visit-frontend/app.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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"


---
Expand All @@ -50,6 +50,6 @@ metadata:
spec:
ports:
- port: 80
targetPort: 80
targetPort: 3000
selector:
app: ip-visit-frontend

0 comments on commit 5b1932e

Please sign in to comment.