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
4 Replies
try changing the env variable to ASPNETCORE_HTTP_PORTS
No , it didn't solve the issue it is still on 80
What about
ASPNETCORE_URLS: http://*:4001;https://*:3001
Ya this solved the problem thanks