mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Set hub to port 80
This commit is contained in:
@@ -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"]
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user