It is currently Fri Sep 18, 2020 2:56 pm
All times are UTC + 8 hours

nextcloud - in a VM or docker container?

Nextcloud is an open source, self-hosted file sync and share and communication app platform. Access & sync your files, contacts, calendars & communicate and collaborate across your devices. You decide what happens with your data, where it is and who can access it!

nextcloud - in a VM or docker container?

Postby jauling » Tue Aug 04, 2020 10:31 pm

Hi,

I've decommissioned my old Nextcloud instance, that I installed using App Central ages ago. There seemed to be no viable method to upgrade Nextcloud to the latest and greatest, so I basically abandoned it. I think it's mostly due to the PHP 7.x requirement, which ADM definitely could not fulfill.

I'm now looking to revisit Nextcloud, since I see a lot of new features and improvements in the latest version. I see there are multiple methods to deploy Nextcould on my AS5104T, but I'm hoping to get some feedback. So far, I see these couple of methods to deploy Docker on an Asustor NAS:


Maybe there's other methods? I think the most manageable and least hassle might be just a Linux VM running Nextcloud in Virtualbox. Obvious issue would be the virtualization overhead, as well as reserving a bunch of RAM for the VM and Nextcloud. The Docker container releases are interesting, but I really don't know which are better or worse or how to decide that...

Any help would be appreciated!
jauling
 
Posts: 48
Joined: Wed Feb 01, 2017 1:34 am
Location: Amsterdam

Re: nextcloud - in a VM or docker container?

Postby Nazar78 » Wed Aug 05, 2020 4:55 am

Forget VM, too much overhead for the NAS and no guarantee in speed. Just go ahead with docker it's simpler. You can also customize run in chroot (I prefer this) or LXC but docker probably easier to setup.
AS5304T - 16GB DDR4 - [40TB N300 RAID10 + 5 Bay USB: 8TB RAID5 & 480GB SSD for Apps]
Nazar78
 
Posts: 119
Joined: Wed Jul 17, 2019 10:21 pm

Re: nextcloud - in a VM or docker container?

Postby jauling » Wed Aug 05, 2020 9:10 pm

Nazar78 wrote:Forget VM, too much overhead for the NAS and no guarantee in speed. Just go ahead with docker it's simpler. You can also customize run in chroot (I prefer this) or LXC but docker probably easier to setup.


Thanks for the reply! I already run a 2GB virtualbox VM on my AS5104T (which I've upgraded to 8GB RAM), so I really didn't want to "lose" more and dedicate a bunch to just Nextcloud. Also, the performance hit did make me think twice. Thanks for your thoughts! I have quite a bit of experience with virtualization, but not much with Docker, which is one of the reasons I've avoided it. I'll do my research and go that route; sounds like the most viable. Thanks again.

Are you running the Docker container provided by Asustor in App Central, or the one from github?
jauling
 
Posts: 48
Joined: Wed Feb 01, 2017 1:34 am
Location: Amsterdam

Re: nextcloud - in a VM or docker container?

Postby Nazar78 » Thu Aug 06, 2020 12:23 am

No problem. Docker might look complicated at first, been there done that, but as you start to get familiar it's a breeze.

All my containers are manually installed and configured from the cmd line so I can customize them. Despite this, I only use containers if I need to control the amount of resources allocated to the app i.e. to use only 20% of the total CPU usage as you would normally do in a VM execution cap minus the overhead. They are also running in the lowest nice priority and idle I/O schedule. The rest of the app I would run in chroot.

As for a start, you can use the containers provided by Asustor or other maintainers from the App Central. They are also pulling images externally e.g. "docker pull nextcloud:latest". On top of that it's also doing all the container setup for you. As you progress, you can use portainer, sort of GUI for docker, then maybe start learning the cmd lines then further down implement auto update images using watchtower and such.
AS5304T - 16GB DDR4 - [40TB N300 RAID10 + 5 Bay USB: 8TB RAID5 & 480GB SSD for Apps]
Nazar78
 
Posts: 119
Joined: Wed Jul 17, 2019 10:21 pm

Return to Nextcloud

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest