Home Assistant OS & OwnCloud - Help Needed :-D

Hi All

So here is the situation - using a RaspBerry Pi5 running Home Assistant OS. Perfect :-D.

But I also want to run OwnCloud - https://owncloud.com/ - it makes sense that if the RPI is running all day, it may as well run cloud storage.

The question is, how do you install OwnCloud on HomeAssistantOS?

There are several options for install, I guess just installing the Tarball would be correct?

If anyone has any experience it would be greatly appreciated :smiley:

Maybe you can install it via “Portainer AddOn” inside HA?
I never installed a docker install via Portainer but there is a option to do it

https://doc.owncloud.org/server/10.5/admin_manual/installation/docker/

This looks really cool :smiley: Thank you. The only concern would be secure with regards to using Poirtainer. What is your experience security-wise with Portainer?

I use portainer only to see my docker installs. Never used it to install.
But its part of HA AddOn so fully supported

Perfect, I will try that when I have a spare evening :smiley: . It looks like the solution though.

1 Like

@Dale_Kirkwood did you succeed? I’m looking for a similar solution

Same… wondering if you succeed.

been trying for some minutes now myself. Struggling with portainer, don’t know how to upload/ configure a docker. I’m not experienced with docker though…

1 Like

No sadly not, it got a little scary :blush:. I was worried to create a security weakness in the system to be honest.

For all the hassle I am just thinking to buy a second RPi to run OwnCloud and for several reasons including not wanting to overload the system.

Really interested to know if someone gets it working. With Google stopping unlimited photo storage this is suddenly much more important for me.

Hi - I just got this to work on my setup.

Here’s what I did:

  1. Install Portainer supervisor addon from the Home Assistant Add-On store (https://github.com/hassio-addons/addon-portainer)

  2. In the portainer add-on, under “Containers” click on " + Add Container"

  • Name: OwnCloud
  • Registry: DockerHub
  • Image: owncloud:latest
  • Enable Publish all exposed network ports to random host ports
  1. Click on “Deploy the container”

  2. Go back to the “containers” list in Portainer and you should see your new container called “OwnCloud” at the top of the list and in the column on the far right there is the port allocation under “Published ports” (eg: 32769:80) - that number before the :80 is the port number you need to use to access owncloud

  3. got to http://<your home assistant local IP address>:<the port number obtained above> and you should be up and running.

  4. If you want owncloud to be accessible from the internet, just enable port forwarding to that specific port from your router.

I hope this helps

4 Likes

You are awesome! Thank you very much. I will be trying this when I have chance!

1 Like

Hey @betaj

Thanks for the tip, it was really simple to set up but I have spent the last hour just trying to get access to the container from the internet.

Basically, my internet is iPV6 so I pay for Nabu Casa to support HA and for its simplicity.

Portainer supports Ingress but I can’t figure out how to access this setup externally through Nabu Casa.

I have tried simple things such as my Nabu Casa URL follow by :<PORTNUM . Surprisingly this didn’t work :-D. Also tried an iFrame but that doesn’t really help and also doesn’t work.

What would you suggest to get this working?

I might be stating the obvious here but did you remember to forward the port on your home router/modem?

You would need to map the internal port to an external one that is public on the internet and then you should be able to access the container from http://<nabu casa URL>:<external port num>

1 Like

by the way if you’re not sure about how to enable port-forwarding feel free to let me know. This website might also help you out: https://portforward.com/router.htm

1 Like

Thanks James, that is nice of you.

I am by no means an expert but this is also what I concluded that I need to forward the port.

The issue I have is my provider (UPC) provides an IPv 6 Router with Port Forwarding Disabled. Do you have any ideas around that?

Here is a forum where I found others https://community.upc.ch/d/10332-port-forwarding-connect-box/323

Sorry I’d missed the part about your connection being IPv6 - that’s quite unusual!
This is a problem as IPv6 can only forward to other IPv6 addresses as far as I know (I don’t have any experience working with IPv6 I’m afraid). I think your best bet here would be to contact you service provider and let them now that you need to enable port forwarding on your modem and see if they can help you out.

Why not use nginx proxy manager? You register a custom subdomain to your IP and let nginx struggle the redirection.

It will also simplify the struggle to get SSL and the only port you would open would be the port 80 from your router to your homeassistant.local