Selenium grid container connect to host localhost:8080

I’m running a webapplication on my host windows system, which runs on localhost:8080. I use selenium grid container (unix container) to run some test. Only when I try to connect from the selenium grid container to localhost:8080, I get the could not reach message. I user the following docker compose to setup:

version: '2'
services:
    firefox:
        image: selenium/node-firefox-debug
        ports:
            - "6900:6900"
        depends_on:
            - hub
        environment:
            HUB_HOST: hub
    firefox1:
        image: selenium/node-firefox-debug
        ports:
            - "6901:6901"
        depends_on:
            - hub
        environment:
            HUB_HOST: hub
    firefox2:
        image: selenium/node-firefox-debug
        ports:
            - "6902:6902"
        depends_on:
            - hub
        environment:
            HUB_HOST: hub   
    firefox3:
        image: selenium/node-firefox-debug
        ports:
            - "6903:6903"
        depends_on:
            - hub
        environment:
            HUB_HOST: hub            
    chrome:
        image: selenium/node-chrome-debug
        ports:
            - "6800:6800"
        depends_on:
            - hub
        environment:
            HUB_HOST: hub
    chrome1:
        image: selenium/node-chrome-debug
        ports:
            - "6801:6801"
        depends_on:
            - hub
        environment:
            HUB_HOST: hub
    chrome2:
        image: selenium/node-chrome-debug
        ports:
            - "6802:6802"
        depends_on:
            - hub
        environment:
            HUB_HOST: hub   
    chrome3:
        image: selenium/node-chrome-debug
        ports:
            - "6803:6803"
        depends_on:
            - hub
        environment:
            HUB_HOST: hub               
    hub:
        image: selenium/hub
        ports:
            - "4444:4444"

Does any one have an idea what to change or do I need to run a different command?

localhost is the own address of the system from where you connect to the network, so if you use it in a container you connect to the container itself. For a request to the Docker host (= your localhost) you have to use its full IP address,