Try the fastest and simplest way to install ONLYOFFICE

Data Container with Traefik

Questions/problems on Docker

Data Container with Traefik

Postby temparus » Tue Jul 17, 2018 9:22 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
temparus
 
Posts: 1
Joined: Tue Jul 17, 2018 9:17 pm

Re: Data Container with Traefik

Postby Maxim » Fri Jul 20, 2018 7:06 am

Hello temparus!
1. I do not understand why it needs 2 doc servers for you and i do not see any reason to set up 2 document server containers. Only if you do not want to pay for the commercial license )))).
2. It looks like that you try to create a cluster system, which is managed under commercial license.
Any ideas what the cause could be for this issue?

Have no idea...
Maxim
 
Posts: 1701
Joined: Tue Oct 11, 2016 2:34 pm


Return to Docker Version

Who is online

Users browsing this forum: Google [Bot] and 1 guest