Set hub to port 80

This commit is contained in:
2024-01-27 16:43:48 -05:00
parent 180ca039bf
commit 67f18a0c69
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS base
WORKDIR /app
EXPOSE 8080
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
WORKDIR /src
@@ -13,4 +13,5 @@ RUN dotnet publish "Service.csproj" -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=build /app .
ENV ASPNETCORE_HTTP_PORTS=80
ENTRYPOINT ["dotnet", "ChrisKaczor.HomeMonitor.Hub.Service.dll"]

View File

@@ -38,7 +38,7 @@ metadata:
spec:
ports:
- name: client
port: 8080
port: 80
selector:
app: hub-service
type: ClusterIP
@@ -62,7 +62,7 @@ spec:
- kind: Service
name: hub-service
namespace: home-monitor
port: 8080
port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware