Nginx dockerized accessing host IIS website on a given port

I’m running docker on windows 10. Some details form docker info

Server Version: 17.06.0-ce
Operating System: Alpine Linux v3.5

  • How to change the resources allocated to a container at run time?
  • How do I fail a Jenkins build if a Docker Pipeline Plugin withRun command returns a non-zero exit code?
  • Which Tensorflow Docker image to use?
  • Docker: Why port forwarding is not working with go tour?
  • Docker removes downloaded files
  • Best practice: Python development environment with docker for mac
  • I need to use nginx as reverse porxy to web app running under my local IIS(e.g. http://localhost:90)

    that’s my nginx default.config

    server {
        listen 4430;
        server_name localhost;
        #root /usr/share/nginx/html;
        location / {
            proxy_pass http://10.0.75.1;#works
            #proxy_pass http://10.0.75.1:90;#does not work
        }
    
        ssl_certificate /etc/nginx/server.crt;
        ssl_certificate_key /etc/nginx/server.key;
    
        ssl on;
        ssl_session_cache  builtin:1000  shared:SSL:10m;
        ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
        ssl_prefer_server_ciphers on;
    }
    

    I’m using the IP 10.0.75.1 to access my host from the container (nginx)
    It works as expected if I do not specify the port.
    What should I do/configure to be able to access my host(IIS website) on a specific port?

  • Can I use docker for installing ubuntu on a Mac?
  • passing correct ip via linked docker containers from nginx to jetty
  • How to load docker image from tar file
  • Deploying latest docker containers with ansible
  • Trying to install Mezzanine via Docker
  • deleting old images in Docker - OSX
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.