Data Container with Traefik

Discussion of issues you faced using ONLYOFFICE
Post Reply
amiveth
Posts: 1
Joined: Tue Jul 17, 2018 8:07 pm

Data Container with Traefik

Post by amiveth » Tue Jul 17, 2018 8:45 pm

As the example docker-compose file in the repository on GitHub [1] suggests to use an additional data container. We named it «onlyoffice-documentserver-data».

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>"
In the log of the onlyoffice-documentserver-data service, we find the follwing 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>"
If we do not split the onlyoffice-documentserver into two services, it works as expected. We want it to be scalable (multiple instances in parallel), so I think that the data container is mandatory.

Any ideas what the cause could be for this issue?

[1] https://github.com/ONLYOFFICE/Docker-DocumentServer

Kate
Posts: 192
Joined: Mon Feb 09, 2015 11:17 am

Re: Data Container with Traefik

Post by Kate » Mon Jul 23, 2018 9:09 am

Hello,

We recommend you to follow our Server Forum dev.onlyoffice.org. All questions about the server version should be posted on this forum.

Post Reply