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?

  • How to edit files in a Confluence docker container? There is no vim and apt-get in it
  • How to mount host directory in docker container?
  • Docker cannot remove all images
  • How do I use the git commit id as a docker image tag in maven?
  • Docker: how to connect two bridges
  • Docker how to report phpunit test that run inside container
  • kubernetes unhealthy ingress backend
  • Delivering software updates with Docker
  • Why might gunicorn be hanging in this configuration?
  • Where is the rootfs of container in host machine after docker 1.6.0
  • $ bundle install --path /cache Could not locate Gemfile
  • Specifying a hostheader binding in docker
  • 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.