前提:省略docker的安装步骤
1拉去onlyoffice镜像,我的是指定版本
docker pull onlyoffice/documentserver:7.1.1
2.启动onlyoffice
- docker run -itd \
- --name onlyoffice \
- --restart always \
- -p 17023:80 \
- -v /data/docker/onlyoffice/log:/var/log/onlyoffice \
- -v /data/docker/onlyoffice/data:/var/www/onlyoffice/Data \
- -v /data/docker/onlyoffice/lib:/var/lib/onlyoffice \
- -v /data/docker/onlyoffice/db:/var/lib/postgresql \
- onlyoffice/documentserver:7.1.1
3.配置example样例
- docker exec onlyoffice sudo supervisorctl start ds:example
- docker exec onlyoffice sudo sed 's,autostart=false,autostart=true,' -i /etc/supervisor/conf.d/ds-example.conf
4.安装中文字体
docker cp 宿主机路径 容器id:容器路径
docker cp font/ 816:/usr/share/fonts/
4.1.进入容器
docker exec -it 816 bash
进入/usr/bin目录 执行sh文件,更新字体,然后清理浏览器缓存
./documentserver-generate-allfonts.sh
5.访问onlyoffice
评论记录:
回复评论: