部署Nextcloud: 文件共享系统,和windows上进行文件管理方式一样。创建目录,在目录中创建文件,上传文件。 使用 Docker Compose (推荐方式)
- 创建一个docker-compose.yml文件:
version: '3' services: db: image: mariadb:latest restart: always environment: MYSQL_ROOT_PASSWORD: your_mysql_root_password MYSQL_DATABASE: nextcloud MYSQL_USER: nextcloud MYSQL_PASSWORD: your_nextcloud_db_password volumes: - ./nextcloud-db:/var/lib/mysql app: image: nextcloud:latest ports: - "8080:80" links: - db depends_on: - db environment: MYSQL_HOST: db MYSQL_DATABASE: nextcloud MYSQL_USER: nextcloud MYSQL_PASSWORD: your_nextcloud_db_password volumes: - ./nextcloud-data:/var/www/html restart: always
- 下载此文件并在终端中运行
mkdir nextcloud-docker cd nextcloud-docker nano docker-compose.yml # 编辑并保存上述内容到该文件
- 启动Nextcloud
docker-compose up -d
- 访问Nextcloud
标签:文件共享,db,MYSQL,docker,nextcloud,your,Nextcloud From: https://www.cnblogs.com/wukc/p/18029919