Commit 2387ce43 authored by Ben Anderson's avatar Ben Anderson

Changed nginx and container ports

parent b46fa7d8
...@@ -10,5 +10,5 @@ RUN npm run build ...@@ -10,5 +10,5 @@ RUN npm run build
FROM nginx:stable-alpine FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html COPY --from=build /app/build /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 81
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]
...@@ -14,10 +14,10 @@ spec: ...@@ -14,10 +14,10 @@ spec:
spec: spec:
containers: containers:
- name: afp-inventory-ui-container - name: afp-inventory-ui-container
image: nexus.mynisum.com/afp-inventory-ui:20 image: nexus.mynisum.com/afp-inventory-ui:21
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8081 - containerPort: 80
env: env:
- name: PROMOTIONS_BACKEND_URI - name: PROMOTIONS_BACKEND_URI
value: "10.0.191.126:8082" value: "10.0.191.126:8082"
...@@ -33,7 +33,7 @@ metadata: ...@@ -33,7 +33,7 @@ metadata:
spec: spec:
type: LoadBalancer type: LoadBalancer
ports: ports:
- port: 8081 - port: 80
targetPort: 80 targetPort: 81
selector: selector:
app: afp-inventory-ui app: afp-inventory-ui
server { server {
listen 80; listen 81;
location / { location / {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment