Fedora-28-onlyoffice-nextcloud

yum install docker -y
systemctl start docker
systemctl enable docker

docker pull docker.io/onlyoffice/documentserver

docker run -i -t -d -p 8800:80 -p 4433:443 --restart always --name onlyoffice  docker.io/onlyoffice/documentserver
##############
docker run -i -t -d -p 8800:80 -p 4433:443 \
    --restart always \
    --name onlyoffice \
    -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 docker.io/onlyoffice/documentserver
#####################
docker logs onlyoffice -f

#进入docker 修改nginx配置ssl证书
#docker exec -it ********* /bin/bash
#重新启动nginx,在nextcloud填写https对应的地址就可以访问了


#########################################################
letsencrypt
docker run -i -t -d -p 443:443 \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
    -v /etc/letsencrypt/:/var/www/onlyoffice/Data/certs  \
    -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
    -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql  docker.io/onlyoffice/documentserver



<img src="https://ipsec.in/wp-content/uploads/2018/10/Screenshot-from-2018-10-09-11-36-18.png" alt="" width="1392" height="932" class="alignnone size-full wp-image-718" />