So just found out, we need to expose the application in two urls, so adding this variable do the trick:
ASPNETCORE_URLS="http://+:5002;http://+:4000"