Good morning, I have assembled the Nas hardware. Now I am going to set up the Nextcloud services in docker. On my nas I have Openmediavaul 7.x running on a 64 Gb pendrive, 1 1Tb Nmve disk where I install all the dockers and on a Raid 5) with 3x Ironwolf disks. In the docker configuration file I see 2 volumes for data
DB
volumes:
db:/var/lib/mysql
app
volumes:
nextcloud:/var/www/html
My initial intention is to deploy the Nexcloud docker to the Nvme disk and the user data (office files, videos, photos) in Raid 5 and I don’t know if it is possible to do this.
Can say nothing about OMV in general Docker is flexible in terms of mount points. I have it similar on my Debian x64 - docker files, config, apps and DB volume mounts are on the SSD, user data and backup on magnetic hard drive.
See the section on using Additional volumes with the micro-services docker image. It describes what you’re seeking.
Doing this using Docker bind mounts (mounted host directories) is probably easiest (since it’s really easy to specify different locations on your host), but it can be done with named volumes too if you’re willing to do some extra work (and are careful!)
Named volumes, since you don’t want everything stored in the standard (single) Docker repository, takes some extra work basically have to override some defaults with the local driver. Something kind of like this (at least for nextcloud-data):
Hi god morning. Ok thanks for your responses. In this moment i am out home for hollydays in London when i will return home in Spain then work whit this.
One question out of curiosity , users ofimatic files, pdf files, photos, videos…etc are stororage into db or what is recorded in the db is a reference to the location of the folder/file?