nextcloud的docker-compose.yml配置文件

nextcloud 的 docker-compose.yml文件
如下:

version: ‘2’

services:
db:
image: mariadb
restart: always
volumes:

  - /home/ubuntu/nextcloud/db:/var/lib/mysql
environment:
  - MYSQL_ROOT_PASSWORD=root
  - MYSQL_PASSWORD=nextcloud
  - MYSQL_DATABASE=nextcloud
  - MYSQL_USER=nextcloud

app:
image: nextcloud
restart: always
ports:

  - 80:80
links:
  - db
volumes:
  - /home/ubuntu/nextcloud/www:/var/www/html

更新应用至最新版
sudo docker pull nextcloud
sudo docker-compose down && sudo docker-compose up -d