What is the benefit of reverse proxy if we can expose to port 80 directly?

Installing Jenkins with Docker tells us to EXPOSE to port 49001 then use reverse proxy to expose to port 80. What is the benefit of using reverse proxy why don’t just expose to port 80 directly?

  • My 'docker run' command uses 2 cpu cores by default. How to increase it?
  • Cannot connect Robomongo using MongoDB docker image
  • Phusion Passenger and Docker-Compose Issue with Permissions
  • Running Vsts agent on nano server
  • Docker logs retrieval from MongoDB
  • Push to Dockerhub sends entire image instead of just the changes
  • Options to use latest docker on centos 6?
  • Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found
  • How to run docker LXC containers on another partition? [closed]
  • Integration Tests with Docker and Bitbucket pipelines
  • Docker and local /etc/hosts records
  • Wordpress & Nginx with Docker: Static files not loaded
  • One Solution collect form web for “What is the benefit of reverse proxy if we can expose to port 80 directly?”

    Adding a reverse proxy can have several benefits, such as allowing you to scale the number of servers behind the proxy in a transparent way.

    That extra abstraction layer has lots of other benefits, such as:

    1. security by hiding the technology that lies behind the proxy
    2. load balancing
    3. caching and compression of what the servers behind the proxy are sending back
    4. Many others…
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.