Difference between revisions of "ONLYOFFICE"

From SME Server
Jump to navigationJump to search
(Page init.)
 
Line 1: Line 1:
Placeholder.
+
this page described how to install onlyoffice '''document server''' as a docker container on SME10as '''server gateway'''. So we can use it from nextcloud.
 +
 
 +
this is early beta.
 +
 
 +
== install ==
 +
<syntaxhighlight lang="bash">
 +
yum install smeserver-docker
 +
</syntaxhighlight>then do where you must replace 192.168.80.117 by your SME LAN IP
 +
 
 +
<syntaxhighlight lang="bash">
 +
docker run -i -t -d --name onlyoffice -p 8080:80  \
 +
      --dns=192.168.80.117  \
 +
      -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
 +
      -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
 +
      -v /app/onlyoffice/DocumentServer/rabbitmq:/var/lib/rabbitmq \
 +
      -v /app/onlyoffice/DocumentServer/redis:/var/lib/redis \
 +
      -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
 +
      -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql \
 +
      onlyoffice/documentserver
 +
 
 +
</syntaxhighlight>
 +
 
 +
TODO : httpd templates
 +
 
 +
TODO: iptables templates
 +
 
 +
== update ==
 +
<syntaxhighlight lang="bash">
 +
docker pull onlyoffice/documentserver:latest
 +
 
 +
cp -a /app/onlyoffice/DocumentServer/ /backuponlyoffice
 +
 
 +
docker stop onlyoffice
 +
docker rm onlyoffice
 +
docker run -i -t -d --name onlyoffice -p 8080:80  \
 +
      --dns=192.168.80.117  \
 +
      -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
 +
      -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
 +
      -v /app/onlyoffice/DocumentServer/rabbitmq:/var/lib/rabbitmq \
 +
      -v /app/onlyoffice/DocumentServer/redis:/var/lib/redis \
 +
      -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
 +
      -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql \
 +
      onlyoffice/documentserver
 +
#wait 5 min and then
 +
docker restart onlyoffice
 +
</syntaxhighlight>then you have to add back your secrets<syntaxhighlight lang="bash">
 +
docker
 +
apt update
 +
mcedit  /etc/onlyoffice/documentserver/local.json
 +
exit
 +
docker restart onlyoffice
 +
</syntaxhighlight>
 +
 
 +
== useful commands ==
 +
<syntaxhighlight lang="bash">
 +
# stop onlyoffice
 +
docker stop --name onlyoffice
 +
#list containers
 +
docker container ls -a
 +
#list images
 +
docker images
 +
# access to the container
 +
docker exec -it onlyoffice bash
 +
</syntaxhighlight>
 +
 
 +
== sources ==
 +
* https://hub.docker.com/r/onlyoffice/documentserver/
 +
* https://github.com/ONLYOFFICE/Docker-DocumentServer
 +
* https://ma.ttias.be/update-docker-container-latest-version/
 +
* https://www.howtoforge.com/tutorial/how-to-update-onlyoffice-to-version-95-with-docker/
 +
* https://docs.docker.com/config/containers/container-networking/
 +
* https://help.nextcloud.com/t/nextcloud-onlyoffice-integration-document-server-getconverteduri-on-check-error-error-while-downloading-the-document-file-to-be-converted/57393

Revision as of 17:57, 17 August 2020

this page described how to install onlyoffice document server as a docker container on SME10as server gateway. So we can use it from nextcloud.

this is early beta.

install

yum install smeserver-docker

then do where you must replace 192.168.80.117 by your SME LAN IP

docker run -i -t -d --name onlyoffice -p 8080:80   \
      --dns=192.168.80.117   \
      -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
      -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
      -v /app/onlyoffice/DocumentServer/rabbitmq:/var/lib/rabbitmq \
      -v /app/onlyoffice/DocumentServer/redis:/var/lib/redis \
      -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
      -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql \
       onlyoffice/documentserver

TODO : httpd templates

TODO: iptables templates

update

docker pull onlyoffice/documentserver:latest

cp -a /app/onlyoffice/DocumentServer/ /backuponlyoffice

docker stop onlyoffice
docker rm onlyoffice
docker run -i -t -d --name onlyoffice -p 8080:80   \
      --dns=192.168.80.117   \
      -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
      -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
      -v /app/onlyoffice/DocumentServer/rabbitmq:/var/lib/rabbitmq \
      -v /app/onlyoffice/DocumentServer/redis:/var/lib/redis \
      -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
      -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql \
       onlyoffice/documentserver
#wait 5 min and then
docker restart onlyoffice

then you have to add back your secrets

docker
apt update
mcedit  /etc/onlyoffice/documentserver/local.json
exit
docker restart onlyoffice

useful commands

# stop onlyoffice
docker stop --name onlyoffice
#list containers
docker container ls -a
#list images
docker images
# access to the container 
docker exec -it onlyoffice bash

sources