docker
docker copied to clipboard
docker-compose example not working behind nginx proxy
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
maybe nginx container starts up too early? make it a link from the app container to control the order of startup
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
- When I use
127.0.0.1orlocalhost, 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.