docker部署onlyoffice之启动方式
All the data are stored in the specially-designated directories, data volumes, at the following location:
###########################创建一下四个目录,启动的时候映射到容器内部相关路径###################################
/var/log/onlyoffice
for ONLYOFFICE Docs logs/var/www/onlyoffice/Data
for certificates/var/lib/onlyoffice
for file cache/var/lib/postgresql
for database
sudo docker run -i -t -d -p 《PORT》:80 --restart=always \ -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 \ -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql onlyoffice/documentserver