nextcloud创建
nextcloud创建※
version: '3'
services:
nextcloud:
image: nextcloud
container_name: nextcloud_web
links:
- nextcloud-db:nextcloud-db
environment:
- UID=1000
- GID=1000
- UPLOAD_MAX_SIZE=5G
- APC_SHM_SIZE=512M
- OPCACHE_MEM_SIZE=512
- CRON_PERIOD=15m
- TZ=Aisa/Shanghai
- ADMIN_USER=admin
- ADMIN_PASSWORD=XiaBin942246
- DOMAIN=localhost
- DB_TYPE=mysql
- DB_NAME=nextcloud
- DB_USER=nextcloud
- DB_PASSWORD=nextcloud
- DB_HOST=nextcloud-db
volumes:
- /share/CACHEDEV1_DATA/Container/nextcloud/data:/var/www/html
expose:
- 9045
ports:
- 9045:80/tcp
restart: always
nextcloud-db:
image: mariadb
container_name: nextcloud_db
volumes:
- /share/CACHEDEV1_DATA/Container/nextcloud/mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=nextcloud
expose:
- 3316
ports:
- 3316:3306
restart: always
以上内容在stacks中新建即可,目前无法解决的问题是onlyoffice无法使用。