Помощь с Multi-Container, nginx и Plesk

Привет,

Мне удалось установить два контейнера Discourse на мой сервер с Plesk под двумя разными доменами. Оба работают, но я получаю ошибку 502.

В логе ошибок указано:
2020/04/18 13:48:45 [error] 61#61: *125 upstream prematurely closed connection while reading response header from upstream, client: 172.17.0.1, server: _, request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:3000/", host: "my.domain"

Когда я запускаю только один контейнер, эта ошибка вообще не появляется. Я пробовал несколько настроек, но не смог исправить проблему. Насколько я понимаю, дело связано с nginx и, возможно, с тем, что контейнеры имеют одинаковый DOCKER_HOST_IP. К сожалению, я не смог найти, где это можно изменить. Изменения этого значения в Plesk не повлияли на лог. Буду очень признателен, если кто-то сможет помочь мне с этим или хотя бы дать четкий совет, чего мне не хватает в настройках.

Извините за плохой английский, надеюсь, мои предложения понятны.

Ok, i was able to fix my issue. Here how i was able to fix it:

Many solutions for this error message was timeout related, so i tried the same fix. But it didnt make any changes, here is how i set up the additional nginx directives initialy:

 location / {
	proxy_pass [https://localhost:8500/;](http://)
	proxy_set_header Host $http_host;
	proxy_http_version 1.1;
	proxy_set_header X-Forwarded-Proto $scheme;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_redirect https://localhost:8500/ https://my.domain;
	proxy_read_timeout 300s;
	proxy_connect_timeout 75s;
}

But like i’ve said, this did nothing. So i kept on searching, till i found this link:

this suggest to put the timout paramters just into the textfield, so i did:
Anmerkung 2020-04-19 202605

The Proxy is handled via the Plesk Docker Plugin.
Now everything is working perfect. Hope this helps someone else struggeling with the same issue.