-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help: 502 Bad Gateway #490
Comments
Hmm i would start out by |
@wader basically I'm out of ideas. No luck messing around with I'm completely annoyed with this because there is no easy way to make docker and ufw work together and that makes it so hard to setup nginx-proxy properly. |
@ealves-pt Ok, sorry I haven't tried anything yet. But i would suggest experiment without involving nginx-proxy just to have less moving parts. What is the end goal, just to make docker and ufw happy together? |
@wader yeah the first goal is to have docker and ufw working together. I'll make sure I get that one right and then I will add nginx-proxy to the stack. |
Struggling with this. New to docker, nginx, etc. Read all the comments here and on the other PRs, and still confused. The app works fine when I use the port (if I export it via ports in my docker-compose, although this just means the nginx container isn't working i'm guessing), and gives the nginx 502 error page when I try to just use the alias I followed your tutorial here exactly: https://medium.com/@francoisromain/set-a-local-web-development-environment-with-custom-urls-and-https-3fbe91d2eaf0 I tried looking at the access log, and the error log, in the var/log/nginx folder and both were empty. I don't know much about nginx, but a few things stand out to me?
My hosts file:
My nginx compose file:
my main compose file:
Docker ps showing all the containers running: nginx default.conf in the running container:
|
I had had the same problem, but it looks like jwilder/nginx-proxy creates wrong nginx.conf file.
to
it will work fine. |
Hey everybody, I'm struggling here with an issue that I didn't manage to solve.
Basically my host runs Ubuntu 14.04. I have followed this and setup /etc/default/docker with
DOCKER_OPTS="--iptables=false"
and /etc/default/ufwDEFAULT_FORWARD_POLICY="ACCEPT"
.I've crated a custom docker network with:
I've set on top of /etc/ufw/before.rules (I'm actually not sure if this step was applied successfully):
I have the two following docker-composer.yml:
nginx/docker-compose.yml:
rancher/docker-compose.yml:
My nginx/conf.d/default looks like this:
And I also get the following nginx errors:
But I'm still not able to reach rancher from the outside. Any hints on how to tackle this? I think I went through all the open and closed issues here but I wasn't able to get it working.
The text was updated successfully, but these errors were encountered: