docker icon indicating copy to clipboard operation
docker copied to clipboard

docker-compose example not working behind nginx proxy

Open ralyodio opened this issue 3 years ago • 4 comments

So I downloaded both the example docker-compose (changed port to 5010 for exposed port) and added proxy to nginx. I also downloaded db.env

When I run docker-compose up it appears to start but when I browse to my domain which forwards to localhost:5010 i get a 502 gateway error.

I do not see what the issue is, can someone help?

http://sprunge.us/q2JKN9

ralyodio avatar Jan 13 '23 10:01 ralyodio

maybe nginx container starts up too early? make it a link from the app container to control the order of startup

ondics avatar Mar 28 '23 12:03 ondics

Similar issue, steps to reproduce:

  • Start Nginx Proxy Manager in docker
  • Start Matomo (I tested Apache) with docker using custom port (5000)
  • Proxy Matomo to http://asd.asd

image

  • When I use 127.0.0.1 or localhost, I get a 502 error.
  • BUT it works when I use my external IP (@ralyodio maybe this is a possible solution for you?)

curl -I http://127.0.0.1:5000 shows 200 status, so I'm a bit confused.

DaWe35 avatar Jul 26 '23 23:07 DaWe35