开始
documentserver社区版免费 地址
cd /root/docker/documentserver
docker run -i -t -d \
--name onlyoffice \
--restart=always \
-e JWT_ENABLED=false \
-p 8089:80 \
-v /etc/localtime:/etc/localtime \
-v /root/docker/documentserver/log:/var/log/onlyoffice \
-v /root/docker/documentserver/data:/var/www/onlyoffice/data \
-v /root/docker/documentserver/lib:/var/lib/onlyoffice \
-v /root/docker/documentserver/db:/var/lib/postgresql \
-d onlyoffice/documentserver
配置ip问题
docker cp onlyoffice:/etc/onlyoffice/documentserver/default.json ./
vim default.json
搜索 `request-filtering-agent`
两个值设置为`true`
docker cp ./default.json onlyoffice:/etc/onlyoffice/documentserver/default.json
重启容器
# docker exec -it onlyoffice bin/bash
# supervisorctl restart all
docker restart onlyoffice
设置字体
fonts从windows目录下拷贝
C:\Windows\Fonts
docker cp fonts/ onlyoffice:/usr/share/fonts/
docker exec -it onlyoffice bin/bash
cd /usr/share/fonts/
mv fonts/* ./
/usr/bin/documentserver-generate-allfonts.sh