Docker-proxy not passing connections to ports other than 80 from outside localhost (other machines)

Since few days my nginx, docker-compose, ubuntu server stopped serving api calls (port 8080), static files are still being served (port 80).

iptables -L output:

  • Spark app unable to write to elasticsearch cluster running in docker
  • What is the best way to manage cert/key for Docker containers that must talk TLS
  • Docker can't write to directory mounted using -v unless it has 777 permissions
  • Docker container only accessible by another
  • Is there a way to set scale value before fig up?
  • Use host networking and additional networks in docker compose
  • Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    DOCKER-ISOLATION  all  --  anywhere             anywhere            
    DOCKER     all  --  anywhere             anywhere            
    ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
    ACCEPT     all  --  anywhere             anywhere            
    ACCEPT     all  --  anywhere             anywhere            
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain DOCKER (1 references)
    target     prot opt source               destination         
    ACCEPT     tcp  --  anywhere             172.17.0.2           tcp dpt:27017
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:http-alt
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:8000
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:4000
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:3000
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:http
    
    Chain DOCKER-ISOLATION (1 references)
    target     prot opt source               destination         
    RETURN     all  --  anywhere             anywhere            
    

    curl from the localhost (from the sever to itself) works, server receives the request:

    curl 172.17.0.5:8080
    {"statusCode":404,"error":"Not Found"}
    

    Curl from elsewhere to port other than 80 just hangs, port 80 always works.

    Any help is appreciated. Let me know if any details are missing. I have investigated through the whole stack and this seems to be the part that’s broken, and I have no idea why.

  • mounting a pseudo-tty in a docker container
  • How to run several separate Wordpress websites using Docker containers
  • Pass a variable to a Dockerfile from a docker-compose.yml file
  • docker-compose unsupported config for services
  • child_process cant execute docker run
  • Dynamic DNS Resolution with HAProxy and Docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.