Docker 部署 OnlyOffice
503人浏览 / 0人评论
官方文档:
https://tools.jbritian.com/link/1
其他:
https://blog.51cto.com/picker/5790042
docker pull onlyoffice/documentserver
docker run -i -t -d -p 10002:80 --restart=unless-stopped --name document onlyoffice/documentserver
#复制配置文件
mkdir /home/onlyoffice
docker cp document:/etc/onlyoffice/documentserver /home/onlyoffice/documentserver
##修改nginx端口为10002
vim /home/onlyoffice/documentserver/nginx/ds.conf.tmpl
#删除容器
docker rm -f document
#挂载启动
docker run -i -t -d -p 10002:80 --restart=unless-stopped -v /home/onlyoffice/documentserver:/etc/onlyoffice/documentserver -v /home/onlyoffice/nginx:/etc/nginx/conf.d --name document onlyoffice/documentserver
docker run --net=host -i -t -d -p 10002:10002 --restart=unless-stopped -v /home/onlyoffice/documentserver:/etc/onlyoffice/documentserver -v /home/onlyoffice/nginx:/etc/nginx/conf.d --name document onlyoffice/documentserver
docker run --net=host -i -t -d -p 10002:10002 --restart=unless-stopped -v /home/onlyoffice/documentserver:/etc/onlyoffice/documentserver --name document onlyoffice/documentserver
docker run -i -t -d -p 10002:80 --restart=unless-stopped -v /home/onlyoffice/documentserver:/etc/onlyoffice/documentserver --name document onlyoffice/documentserver
注意:在onlyoffice 7.4中新增了一项安全功能,如果局域网IP访问,必须开启JWT。
全部评论