Nextcloud version : 25.0.4
Operating system and version : OMV 6.3.2-2
Apache or nginx version (eg, Apache 2.4.25): Nginx v2.9.19
I’ve built and have been setting up my home server and my next step is to setup Nextcloud and I’ve managed to finally make everything run (domain, Nginx, cloudflare DNS, Nextcloud), but the problem is the shared folder location.
Since I have an SSD drive with the OS and software with 1 TB and a 32 TB MergerFs pool, I wanted to have the shared folders in the MErgerFS system and not in the small OS drive.
I’ve tried to change the volume but Nextcloud not only stooped working but blocked my access to the folder (/srv/mergerfs/MergerFS/NAS/Cloud).
Is it possible to change the main data folder and can I have direct access to it’s folder or do I need to use Nexcloud software?
volumes:
nextcloud-data:
nextcloud-db:
npm-data:
npm-ssl:
npm-db:
services:
nextcloud-app:
image: nextcloud
restart: always
volumes:
- nextcloud-data:/var/www/html
# - /srv/mergerfs/MergerFS/NAS/Cloud:/var/www/html
environment:
- MYSQL_PASSWORD=***
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=nextcloud-db
ports:
- 980:80
nextcloud-db:
image: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
volumes:
- nextcloud-db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=***
- MYSQL_PASSWORD=***
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
npm-app:
image: jc21/nginx-proxy-manager:latest
restart: always
ports:
- "80:80"
- "81:81"
- "443:443"
environment:
- DB_MYSQL_HOST=npm-db
- DB_MYSQL_PORT=3306
- DB_MYSQL_USER=npm
- DB_MYSQL_PASSWORD=***
- DB_MYSQL_NAME=npm
volumes:
- npm-data:/data
- npm-ssl:/etc/letsencrypt
npm-db:
image: jc21/mariadb-aria:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=***
- MYSQL_DATABASE=npm
- MYSQL_USER=npm
- MYSQL_PASSWORD=***
volumes:
- npm-db:/var/lib/mysql