On our Docker Swarm Cluster, we use Traefik as reverse proxy. Both services (onlyoffice-documentserver and onlyoffice-documentserver-data) are in the same swarm overlay network.
The incoming requests are forwarded to the onlyoffice-documentserver service, but returns the nginx error page «502 Bad Gateway», e.g. when requesting «https://<onlyoffice-domain>/welcome/».
In the log of the onlyoffice-documentserver service, we find the following entry:
Code: Select all
2018/07/17 22:37:23 [error] 1673#1673: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.0.10, server: , request: "GET /welcome/ HTTP/1.1", upstream: "http://127.0.0.1:8000/welcome/", host: "<onlyoffice-domain>"
Code: Select all
2018/07/17 22:37:23 [error] 1673#1673: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.0.10, server: , request: "GET /welcome/ HTTP/1.1", upstream: "http://127.0.0.1:8000/welcome/", host: "<onlyoffice-domain>"
Any ideas what the cause could be for this issue?
[1] https://github.com/ONLYOFFICE/Docker-DocumentServer