Configure ownCloud/Docker install to use external/local disk instead of Docker volumes

Steps to reproduce

nothing to reproduce as I am missing essential info

Expected behaviour

Use local disk for files instead of internal Docker volume
Disk is mounted e.g. /media/Data

Actual behaviour

nothing, as I don’t know how do config opwCloud/Docker to use local disk instead of internal Docker volume

Server configuration

Operating system:
Ubuntu 18.04.2

Web server:
within Docker container, I presume

Database:
within Docker container, I presume

PHP version:
within Docker container, I presume

ownCloud version: (see ownCloud admin page)
10.0.10

Updated from an older ownCloud or fresh install:
fresh install

Where did you install ownCloud from:
https://doc.owncloud.com/server/10.2/admin_manual/installation/docker/
https://hub.docker.com/r/owncloud/server/

Signing status (ownCloud 9.0 and above):

Ok, solved it by myself.
In docker-compose.yml I changed
volumes:

  • files:/mnt/data

to

  • /media/Data:/mnt/data

purged all the volumes and restarted docker-compose

3 Likes