3. OnlyOffice

最後更新: 2018-08-29

介紹

 

License: GNU AGPL v3.0

Document Server is a part of ONLYOFFICE Community Edition (Email, Calendar ...)

# Includes the following editors

  • Document Editor
  • Spreadsheet Editor
  • Presentation Editor

Recommended System Requirements

  • RAM: 4 GB or more
  • CPU: dual-core 2 GHz or higher
  • Swap: at least 2 GB
  • HDD: at least 2 GB of free space

 


Run ONLYOFFICE in Docker

 

# 查看 docker image 資料

https://github.com/ONLYOFFICE/Docker-DocumentServer

# Start & Auto-start docker

systemctl enable docker

systemctl start docker

# Downloads and deploys the DocumentServer on the local port 88

docker run -i -t -d -p 88:80 --restart=always --name oods onlyoffice/documentserver

# Test:

curl http://127.0.0.1:88

 


Storing Data

 

Storing the data on the host machine 好處

allows you to easily update ONLYOFFICE once the new version is released without losing your data.

All the data are stored in the specially-designated directories, data volumes, at the following location:

/var/log/onlyoffice      # for ONLYOFFICE Document Server logs
/var/www/onlyoffice/Data # for certificates

To get access to your data from outside the container, you need to mount the volumes.

It can be done by specifying the '-v' option in the docker run command.

sudo docker run -i -t -d -p 80:80 \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
    -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice/documentserver \
    onlyoffice/documentserver

 

 

 

Creative Commons license icon Creative Commons license icon