Changes

From SME Server
Jump to navigationJump to search
2,664 bytes added ,  17:57, 17 August 2020
no edit summary
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
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu