an while ago i’ve setup a docker-stack for an webserver. this included nginx, php-fpm and traefik. Everything worked well until in needed to do an clean install on my server.
I moved my docker-stacks-folder to the new system and can’t get the webserver services back up working.
The first problem was, that traefik hat a problem and didnt worked, so i needed to add a dummy label into any service for traefik to make it work.
labels: .... traefik.http.services.nginx01.loadbalancer.server.port=80
Well, i still dunno why, but it seems to make traefik work. SHould that really be an valid solution?
Anyway. When i try to access one of my services, no matter if i make use of ip or domain, iam getting an 502 or 504 error. This happens on all my services that are located in nginx.
Weirdly, if i create an phpinfo, that seems to work. I googled much arround and tryed solutions like, increasing timeouts, childrens etc, but nothing worked.
Now iam here and hope someone could help me please, to find the problem.
- Debian 10.5
- Docker version 19.03.13, build 4484c46d9d
If anything else is needed, please let me know.
Thx in advance.