nextcloud Docker 创建

-
-
2024-03-24

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无法使用。

“您的支持是我持续分享的动力”

微信收款码
微信
支付宝收款码
支付宝

Ben
干就完了,逻辑闭毛环
公告

责人之心责己,恕己之心恕人 博客内容仅限个人使用,不提供信息服务,如有侵权请留言
最新评论

加载中...