Nextcloud部署
nextcloud部署
前言
系统: CentOS7.9
next版本: all-in-one(aio)
系统要求8G以上内存,个人云服务器不推荐
参考文档: GitLab官方部署文档
安装部署
services:
nextcloud:
image: nextcloud/all-in-one:latest
restart: always
container_name: nextcloud-aio-mastercontainer # 官方文档要求,不可修改
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:${certs}
ports:
- 8080:8080
environment:
- SKIP_DOMAIN_VALIDATION=true
- AIO_DISABLE_BACKUP_SECTION=true
- APACHE_PORT=11000
- APACHE_IP_BINDING=127.0.0.1
- NEXTCLOUD_DATADIR=${datadir}
- NEXTCLOUD_UPLOAD_LIMIT=8G
- NEXTCLOUD_MAX_TIME=7200
- NEXTCLOUD_MEMORY_LIMIT=1024M
- NEXTCLOUD_TRUSTED_CACERTS_DIR=${certs}
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer