C
C#3mo ago
shray

Docker container hosting dotnet 6 api on port 80 instead of mentioned port

Docker hosting dotnet 6 api on port 80. Attached is the images of docker compose,dockerfile,appsettings,launcheettings canyou help me why it is not hosting on port 3001
No description
4 Replies
dreadfullydistinct
try changing the env variable to ASPNETCORE_HTTP_PORTS
shray
shray3mo ago
No , it didn't solve the issue it is still on 80
dreadfullydistinct
What about ASPNETCORE_URLS: http://*:4001;https://*:3001
shray
shray3mo ago
Ya this solved the problem thanks
Want results from more Discord servers?
Add your server
More Posts