Question about installing Nextcloud docker in OMV

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.

All the best

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.

1 Like

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!)

For standard Docker bind mounts something like:

app:
[...]
    volumes:
        - /path/to/nvme/nextcloud-html:/var/www/html
        - /path/to/raid5/nextcloud-data:/var/www/html/data
[...]
db:
    volumes:
        - /path/to/nvme/nextcloud-db:/var/lib/mysql
[...]

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):

volumes:
  nextcloud-data:
    driver: local
    driver_opts:
      type: none
      device: /path/to/raid5/nextcloud-data
      o: bind

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?

Regards
Pd. sorry for my basic enghish level.