From 4ff9cbb86410a1f85056200d38e365a5bdb3b5c7 Mon Sep 17 00:00:00 2001 From: selmankoc Date: Thu, 24 Oct 2024 14:59:39 +0300 Subject: [PATCH] FIx port to forward 80 --- apps/public-web/src/EShopOnAbp.PublicWeb/Dockerfile.azure | 2 ++ .../web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile.azure | 2 ++ gateways/web/src/EShopOnAbp.WebGateway/Dockerfile.azure | 2 ++ .../Dockerfile.azure | 2 ++ services/basket/src/EShopOnAbp.BasketService/Dockerfile.azure | 2 ++ .../src/EShopOnAbp.CatalogService.HttpApi.Host/Dockerfile.azure | 2 ++ .../src/EShopOnAbp.CmskitService.HttpApi.Host/Dockerfile.azure | 2 ++ .../EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile.azure | 2 ++ .../EShopOnAbp.OrderingService.HttpApi.Host/Dockerfile.azure | 2 ++ .../src/EShopOnAbp.PaymentService.HttpApi.Host/Dockerfile.azure | 2 ++ 10 files changed, 20 insertions(+) diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Dockerfile.azure b/apps/public-web/src/EShopOnAbp.PublicWeb/Dockerfile.azure index ae79ac14..49955bad 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Dockerfile.azure +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/apps/public-web/src/EShopOnAbp.PublicWeb/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.PublicWeb.dll"] \ No newline at end of file diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile.azure b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile.azure index e562309c..218ecd7e 100644 --- a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile.azure +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/gateways/web-public/src/EShopOnAbp.WebPublicGateway/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.WebPublicGateway.dll"] \ No newline at end of file diff --git a/gateways/web/src/EShopOnAbp.WebGateway/Dockerfile.azure b/gateways/web/src/EShopOnAbp.WebGateway/Dockerfile.azure index fe0a77e0..5d91ee76 100644 --- a/gateways/web/src/EShopOnAbp.WebGateway/Dockerfile.azure +++ b/gateways/web/src/EShopOnAbp.WebGateway/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/gateways/web/src/EShopOnAbp.WebGateway/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.WebGateway.dll"] \ No newline at end of file diff --git a/services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/Dockerfile.azure b/services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/Dockerfile.azure index 6c0a76a7..60d6af84 100644 --- a/services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/Dockerfile.azure +++ b/services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.AdministrationService.HttpApi.Host.dll"] \ No newline at end of file diff --git a/services/basket/src/EShopOnAbp.BasketService/Dockerfile.azure b/services/basket/src/EShopOnAbp.BasketService/Dockerfile.azure index db788eb2..1da637ab 100644 --- a/services/basket/src/EShopOnAbp.BasketService/Dockerfile.azure +++ b/services/basket/src/EShopOnAbp.BasketService/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/services/basket/src/EShopOnAbp.BasketService/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.BasketService.dll"] \ No newline at end of file diff --git a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/Dockerfile.azure b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/Dockerfile.azure index f8380a9b..e46e2bd4 100644 --- a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/Dockerfile.azure +++ b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.CatalogService.HttpApi.Host.dll"] \ No newline at end of file diff --git a/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/Dockerfile.azure b/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/Dockerfile.azure index 5d6106ed..139e5c45 100644 --- a/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/Dockerfile.azure +++ b/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.CmskitService.HttpApi.Host.dll"] \ No newline at end of file diff --git a/services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile.azure b/services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile.azure index 5f9c074c..63b6b374 100644 --- a/services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile.azure +++ b/services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.IdentityService.HttpApi.Host.dll"] \ No newline at end of file diff --git a/services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/Dockerfile.azure b/services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/Dockerfile.azure index 8e065f29..4c6d0bb6 100644 --- a/services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/Dockerfile.azure +++ b/services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.OrderingService.HttpApi.Host.dll"] \ No newline at end of file diff --git a/services/payment/src/EShopOnAbp.PaymentService.HttpApi.Host/Dockerfile.azure b/services/payment/src/EShopOnAbp.PaymentService.HttpApi.Host/Dockerfile.azure index 11a5f2fe..b6f2bbf2 100644 --- a/services/payment/src/EShopOnAbp.PaymentService.HttpApi.Host/Dockerfile.azure +++ b/services/payment/src/EShopOnAbp.PaymentService.HttpApi.Host/Dockerfile.azure @@ -6,5 +6,7 @@ RUN dotnet publish -c Release -o bin/Release/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app +EXPOSE 80 +ENV ASPNETCORE_URLS=http://+:80 COPY --from=build /src/eShopOnAbp/services/payment/src/EShopOnAbp.PaymentService.HttpApi.Host/bin/Release/publish/ . ENTRYPOINT ["dotnet", "EShopOnAbp.PaymentService.HttpApi.Host.dll"] \ No newline at end of file