your posting is really hard to understand. I guess you are talking about running ownCloud in a docker.
Starting with the official documentation https://doc.owncloud.com/server/admin_manual/installation/docker/ where it reads
Copy docker-compose.yml from the GitHub repository
In this default configuration volumes are stored “internally” in the docker directories.
Assuming you have got the directory
/mnt/somedevice/owncloud/data on your file system where you want to store your ownCloud data then you have to change the line
and re-run docker-compose
The mount point above could be a bare disk, LVM, NFS, whatever meets your requirements
Don’t mess around with any other tools, use this variant.
(see, a fellow poster solved the same issue Configure ownCloud/Docker install to use external/local disk instead of Docker volumes)
Repeat this for redis and/or mysql directories if required.
Basically search the internet for docker volumes, since this is rather a docker than an ownCloud issue.