docker-compose.ymlversion:'2'services:db:container_name:cloud_dbimage:mysqlvolumes:-"./data/cloud/mysql:/var/lib/mysql"restart:alwaysenvironment:MYSQL_ROOT_PASSWORD:pwdMYSQL_DATABASE:nextcloudapp:container_name:cloud_appdepends_on:-dbimage:nextcloudvolumes:-./data/cloud/config:/var/www/html/config-./data/cloud/data:/var/www/html/data-./data/cloud/apps:/var/www/html/appslinks:-dbports:-"2333:80"restart:always...同步的文件会存放在./data/cloud/data:/var/www/html/data如果我用dockerrmid删除了容器,是不是同步的数据也会丢失?我的服务器搭建在Vultr,使用了BlockStorage现在想将数据迁移到BlockStorage中,参考將OwnCloud的儲存空間移至區塊儲存上需要修改/var/www/html/config/config.php'datadirectory'=>'/var/www/html/data',为'datadirectory'=>'/mnt/blockstorage/nextcloud',是不是可以直接写在docker-compose.yml中?-./data/cloud/data:/mnt/blockstorage/nextcloud
郎朗坤
相关分类