[DOCKER] ownCloud is here!


Recommended Posts

...It's just another small problem, when I goto my owncloud via the reverse proxy "https://untrue/owncloud" I reach the login page and everything is normal. But after I have logged in instead of the webpage now showing "https://untrue/owncloud/index.php/apps/files/" it now gives me 2x owncloud like this "https://untrue/owncloud/owncloud/index.php/apps/files/" and I have to change manually back to only 1x owncloud for it to work.

 

How can I fix this? I got the configs listed above.

Sincerely TrueType

 

(somehow the iPhone owncloud app manages to solve it anyhow even though it has 2x owncloud, lol)

Can anyone help me with this please?

Thanks in advance..

Link to comment

...It's just another small problem, when I goto my owncloud via the reverse proxy "https://untrue/owncloud" I reach the login page and everything is normal. But after I have logged in instead of the webpage now showing "https://untrue/owncloud/index.php/apps/files/" it now gives me 2x owncloud like this "https://untrue/owncloud/owncloud/index.php/apps/files/" and I have to change manually back to only 1x owncloud for it to work.

 

How can I fix this? I got the configs listed above.

Sincerely TrueType

 

(somehow the iPhone owncloud app manages to solve it anyhow even though it has 2x owncloud, lol)

Can anyone help me with this please?

Thanks in advance..

 

Your config.php isn't quite the same as the one I posted....

 

 

 

$CONFIG = array (
  'instanceid' => 'INSTANCEID',
  'passwordsalt' => 'PASSWORD',
  'secret' => 'SECRET',
  'trusted_domains' => 
  array (
    0 => '192.168.0.1',
    1 => 'server.com',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwritewebroot' => '/owncloud',
  'overwrite.cli.url' => 'https://server.com',
  'overwritehost' => 'server.com',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '8.0.3.4',
  'dbname' => 'owncloud',
  'dbhost' => '192.168.0.1',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_USER',
  'dbpassword' => 'PASSWORD',
  'installed' => true,
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',

 

Link to comment

Just found https://hub.docker.com/_/owncloud/, and https://github.com/docker-library/official-images as a repository of official docker containers for various apps.

Is there a simple way to convert or use these as unRAID docker containers ?

Thanks

Just take a look at the documentation provided for each and see what the docker run command is.

 

Here is what is really happening with the unRAID Add Docker page. You are filling in a form with stuff that is used by the docker run command. Once you have filled in the form it is saved to an XML template on your flash so you won't have to enter it again.

 

Community Applications gets docker XML templates from the community docker authors so most of the form is filled in for you. Community Applications also has a feature that tries to figure some of this out from dockers on the hub that don't have an XML template.

 

Try them and see what happens.

Link to comment

Just found https://hub.docker.com/_/owncloud/, and https://github.com/docker-library/official-images as a repository of official docker containers for various apps.

Is there a simple way to convert or use these as unRAID docker containers ?

Thanks

 

Community Applications, you have to go into settings and turn on allow unsupported containers or something and figure out the bits you need to fill in for yourself...

Link to comment

If you're able to then there's no reason not to.  A lot of our containers on here have no official version, or they may bring something to the table that the official one does not, like auto-updating or a webmin in the case of MariaDB from Sparklyballs (Not that sure if an official MariaDB exists tbh)

 

Most importantly they come with the XML template which has a lot of the values completed, but if you are able it's certainly a viable way to do things and I run a couple of non-Unraid containers on my machine.

Link to comment

I accidentally uninstalled the ownCloud docker in an attempt to get the latest update and now even after reinstalling the ownCloud docker i only get an error when i go to the web GUI "Downgrading is not supported and is likely to cause unpredictable issues (from 8.2.1.4 to 8.1.4.2)". I must have updated previously from the ownCloud web GUI interface and now it will not let me run the docker from gfjardim since I have run a newer version previously.. hopefully someone can give me some insight how i can repair my installation without having to start from scratch again.

Link to comment

When you update ownCloud using the admin webinterface, a zipped version backup is saved in the data folder. I've unzipped it and copied it inside the docker and everything started working again...

Then I've decided it's too complicated to redo this every change I'll edit the container, so started from scrach using the official ownCloud container.

I've mapped the complete /var/www/owncloud to an appdata folder for persistancy.

The only problem still not solved is editing the cron file...

 

Link to comment

When you update ownCloud using the admin webinterface, a zipped version backup is saved in the data folder. I've unzipped it and copied it inside the docker and everything started working again...

Then I've decided it's too complicated to redo this every change I'll edit the container, so started from scrach using the official ownCloud container.

I've mapped the complete /var/www/owncloud to an appdata folder for persistancy.

The only problem still not solved is editing the cron file...

 

Where is the official ownCloud container ?  and does that official runs the latest 8.2.2 owncloud?

Link to comment

When you update ownCloud using the admin webinterface, a zipped version backup is saved in the data folder. I've unzipped it and copied it inside the docker and everything started working again...

Then I've decided it's too complicated to redo this every change I'll edit the container, so started from scrach using the official ownCloud container.

I've mapped the complete /var/www/owncloud to an appdata folder for persistancy.

The only problem still not solved is editing the cron file...

 

Where is the official ownCloud container ?  and does that official runs the latest 8.2.2 owncloud?

I'm using https://hub.docker.com/_/owncloud/

And yes, it's running the latest 8.2.2.

Haven't used in-app update yet, so don't know how persistent it is.

I've mapped the whole /var/www/html to /mnt/cache/appdata/owncloud and added a mapping of /data:/mnt/user/ownCloud, pointing the installation wizard to save user files at /data instead of the default location of /var/wwww/html/data (if that makes any sense to you).

I've also installed the official Redis container (https://hub.docker.com/_/redis/) for memcache and file locking.

The only caveat I still have is cron jobs, but am using www.crondash.com for webcron.

Hope that helps

S

Link to comment

this is my commandline for the official docker for reference: (using a link to my MariaDB docker)

 

docker run -d --name ownCloud -p 8000:80 -v /mnt/user/docker/appdata/owncloud/apps:/var/www/html/apps -v /mnt/user/docker/appdata/owncloud/config:/var/www/html/config -v /mnt/user/docker/ownclouddata:/var/www/html/data --link MariaDB:mysql owncloud:8.2.2

Link to comment

this is my commandline for the official docker for reference: (using a link to my MariaDB docker)

 

docker run -d --name ownCloud -p 8000:80 -v /mnt/user/docker/appdata/owncloud/apps:/var/www/html/apps -v /mnt/user/docker/appdata/owncloud/config:/var/www/html/config -v /mnt/user/docker/ownclouddata:/var/www/html/data --link MariaDB:mysql owncloud:8.2.2

 

Not using the CLI, but the Docker page.  I'll "translate" those commands for the fields in the page :)

Link to comment

When you update ownCloud using the admin webinterface, a zipped version backup is saved in the data folder. I've unzipped it and copied it inside the docker and everything started working again...

Then I've decided it's too complicated to redo this every change I'll edit the container, so started from scrach using the official ownCloud container.

I've mapped the complete /var/www/owncloud to an appdata folder for persistancy.

The only problem still not solved is editing the cron file...

 

Where is the official ownCloud container ?  and does that official runs the latest 8.2.2 owncloud?

I'm using https://hub.docker.com/_/owncloud/

And yes, it's running the latest 8.2.2.

Haven't used in-app update yet, so don't know how persistent it is.

I've mapped the whole /var/www/html to /mnt/cache/appdata/owncloud and added a mapping of /data:/mnt/user/ownCloud, pointing the installation wizard to save user files at /data instead of the default location of /var/wwww/html/data (if that makes any sense to you).

I've also installed the official Redis container (https://hub.docker.com/_/redis/) for memcache and file locking.

The only caveat I still have is cron jobs, but am using www.crondash.com for webcron.

Hope that helps

S

 

Ok I have it running on the Official Docker for Owncloud.

 

How did you use Redis? can you share screenshot of the Docker GUI page you have for Redis?  (edit the docker and show advanced).  thanks.

Link to comment

When you update ownCloud using the admin webinterface, a zipped version backup is saved in the data folder. I've unzipped it and copied it inside the docker and everything started working again...

Then I've decided it's too complicated to redo this every change I'll edit the container, so started from scrach using the official ownCloud container.

I've mapped the complete /var/www/owncloud to an appdata folder for persistancy.

The only problem still not solved is editing the cron file...

 

Where is the official ownCloud container ?  and does that official runs the latest 8.2.2 owncloud?

I'm using https://hub.docker.com/_/owncloud/

And yes, it's running the latest 8.2.2.

Haven't used in-app update yet, so don't know how persistent it is.

I've mapped the whole /var/www/html to /mnt/cache/appdata/owncloud and added a mapping of /data:/mnt/user/ownCloud, pointing the installation wizard to save user files at /data instead of the default location of /var/wwww/html/data (if that makes any sense to you).

I've also installed the official Redis container (https://hub.docker.com/_/redis/) for memcache and file locking.

The only caveat I still have is cron jobs, but am using www.crondash.com for webcron.

Hope that helps

S

 

Ok I have it running on the Official Docker for Owncloud.

 

How did you use Redis? can you share screenshot of the Docker GUI page you have for Redis?  (edit the docker and show advanced).  thanks.

 

Used Community Applications with the setting of "Enable additional search results from dockerHub?" enabled to find the official Redis docker, then added it with the attached parameters.

In owncloud's config.php, added:

'memcache.local' => '\OC\Memcache\APCu',
'filelocking.enabled' => 'true',
'memcache.locking' => '\OC\Memcache\Redis',
  'redis' => array(
    'host' => MY_SERVER_IP_ADDRESS,
    'port' => 6379,
     ),

Redis.png.df30692a6e2d928bed1a902678cc36ff.png

Link to comment

Scrap that, it eventually booted up.. Took a good 30 minutes or so though, not sure why!

 

I'm up and running except the only issue I have is accessing this externally. I know security risks etc.

 

I can access it internally no problem, and externally I have setup duckDNS to forward to my router and port forwarded this to the ownCloud docker. I tested with my other dockers and it works perfectly, however owncloud gives me a connection refused.

 

In the config i have tested the following

 

Router IP

DuckDNS address

Custom domain address that points to duckDNS

 

and none of them work, is there something i'm missing here?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.