nextcloud 安装配置

docker-compose.yml

  mariadb:
    image: mariadb
    restart: unless-stopped
    ports:
      - 3306:3306
    volumes:
      - ./mariadb/data:/var/lib/mysql
    environment:
      - MARIADB_ROOT_PASSWORD=passwd
      - MARIADB_DATABASE=nextcloud
      - MARIADB_USER=nextcloud
      - MARIADB_PASSWORD=nextcloud
  nextcloud:
    image: nextcloud
    restart: unless-stopped
    ports:
      - 8081:80
    depends_on:
      - mariadb
    environment:
      - MYSQL_HOST=mariadb
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD=nextcloud
    volumes:
      - ./nextcloud/var:/var/www/html
posted @ 2022-03-19 10:54  qianbuhan  阅读(141)  评论(0编辑  收藏  举报