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?

  • SSH connection to my container closed by remote host
  • How safe is to use docker in production? [closed]
  • Bad log time in Docker
  • Running Scrapy in Docker Container
  • Cannot download Docker image from repository
  • Problems with Sailsjs application in Docker container
  • Docker daemon processes
  • docker mapping volume directory not showing up [closed]
  • Port based routing in docker container
  • Recommended way to run a Docker Compose stack in production?
  • How to get the docker containers information with Ruby and monitor it
  • Docker Toolbox Mac command line and Kitematics fails
  • 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.