bellycard / docker-loadbalancer

121 stars 29 forks source link

I'm sorry, it doesn't work for me #9

Open kklepper opened 8 years ago

kklepper commented 8 years ago

In my understanding, curl localhost should show the application hello world, but it doesn't, instead I get an NGINX timeout. Calling appvia docker IP directly succeeds. Scaling doesn't change this behavior.

Looking at cat etc/nginx/conf.d/app.confinside the lb container I get

upstream app {
  least_conn;
  server 10.0.2.15:8300 max_fails=3 fail_timeout=60 weight=1;

}

server {
  listen 80 default_server;

  location / {
    proxy_pass http://app;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
  }
}

no matter what scaling I choose.

What is happening here?