After a single service restart (e.g. marmotta) the IP address of the container may change.
Unfortunately, the ngnix proxy always uses the previously resolved IP address for upstream requests, which causes it to report a "502 - Bad Gateway".
Found solutions are just available for nginx-plus:
https://www.nginx.com/blog/dns-service-discovery-nginx-plus/