I want to deploy my ASP.NET Core App in Docker on a linux server.
I saw a good video (https://www.youtube.com/watch?v=WUzEJuBYtY0)
where nginx is used a reverse proxy.
I wonder if it will make sense to put the nginx in the same container and just expose the docker port, so every request will be handled by docker->nginx->kestrel. This will make the server port (e.g. port 80) unique and no virtual-hosts will be supported - but this is not critical in my VM-environment.
Is there something I missed in this idea?!
What are pros/cons for this scenario.
Is it safe?
Thanx in advance.