Owncloud under docker.

  • HI, I've installed owncloud under docker using the 'official source' :
    https://hub.docker.com/r/owncloud/server/
    It works as expected, but I've not been able to use a OMV shared folder as a storage path for owncloud.


    All data seems to be in (omv path) /var/lib/docker/volumes


    I've passed a shared folder to the container and mount it as /ownclouddata and it is there, but I can not find the way to say owncloud to use that mountpoint for its data.


    Can anybody point me how to change it ??


    Regards

    OMV 4.x. OMV-Extras ZFS iSCSI Infiniband. Testing OMV 5.1. Testing OMV arm64

  • Persistent data


    All data beyond what lives in the database (file uploads, etc) is stored within the default volume /var/www/html. With this volume, ownCloud will only be updated when the file version.php is not present.

    • -v /<mydatalocation>:/var/www/html

    For fine grained data persistence, you can use 3 volumes, as shown below.

    • -v /<mydatalocation>/apps:/var/www/html/apps installed / modified apps
    • -v /<mydatalocation>/config:/var/www/html/config local configuration
    • -v /<mydatalocation>/data:/var/www/html/data the actual data of your ownCloud



    Did you use the full path???


    /srv/dev-disk-by-label/ownclouddata

    OMV 6.x
    Supermicro X9DRH-7F
    2X-XEON E5-2660V2
    128GB PC3-10600R ECC REG
    Supermicro SATA DOM 64GB
    Areca ARC-1883IX-24
    24X - WD WD80EFZX
    NORCO RPC-4224 4U
    Eaton 5PX 1500

  • Thanks Mike.


    Not sure if I can understand what you say...


    From inside OMV shell, I can see docker(Owncloud) data nder /var/lib/docker/volumes.
    -that means that owncloud data is filling mi OMV main disk. :(


    I've shared (from OMV) another disk/filesystem and passed it to docker mount as /ownclouddata
    - from inside docker shell I can access this mountpoint and write to it.


    From inside docker shell on /var/www/html I only have index.html


    Regards

    OMV 4.x. OMV-Extras ZFS iSCSI Infiniband. Testing OMV 5.1. Testing OMV arm64


  • Host Path = Shared Volume
    Container path = docker volume


    This maps the the path of the docker container to a shared path on your server.


    -Mike

    OMV 6.x
    Supermicro X9DRH-7F
    2X-XEON E5-2660V2
    128GB PC3-10600R ECC REG
    Supermicro SATA DOM 64GB
    Areca ARC-1883IX-24
    24X - WD WD80EFZX
    NORCO RPC-4224 4U
    Eaton 5PX 1500

  • I have that working. Mounted as /ownclouddata


    What I need is a way to tell owncloud to use thata mount for its data.....

    OMV 4.x. OMV-Extras ZFS iSCSI Infiniband. Testing OMV 5.1. Testing OMV arm64

  • @grusu
    Finally I've got it to work using your suggestion.
    I tested this before, without success. It seems that mount point /srv/dev-disk-by.... should be empty for owncloud to use it.


    After starting a new installation, it worked as expected.


    Thanks again

    OMV 4.x. OMV-Extras ZFS iSCSI Infiniband. Testing OMV 5.1. Testing OMV arm64

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!