i am struggling to access my .Net 8 Core Web App (Swagger UI) outside of my container.
Without Docker it is accessible via the following URL: http://localhost:90/swagger/index.html
I can start the App by executing an .exe file which results into the following output:
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:90 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0] Content root path: C:\Users\Username\Documents\Git\WetterApi\WetterApi
Added the following Lines to the Dockerfile:
ENV DOTNET_URLS=http://+:90
ENV ASPNETCORE_URLS=http://+:90
ENV ASPNETCORE_HTTP_PORTS=90
Still not accessible from outside the container
Rikero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.