Iām looking to install nextcloud with Letās Encrypt and LDAP/AD support, but Iām not sure which option to choose for the easiest setup and future update procedure. Is there official documentation on how to install nextcloud using Snappy or Docker? How does the update/upgrade system work?
It seems the snap version is still at version 9.0.53, and thereās no official nextcloud repository on docker hub.
Iām used to updating GitLab every by running just two commands, without worrying about doing anything else. Is there something as simple for nextcloud?
For example this is how I upgrade GitLab every week. Just those two commands and nothing more.
Nextcloud provides an official Docker image here with basic documentation. As I prefer AiO images, I maintain my own, which really behaves like a Nextcloud Box. Everything is already configured, tested, you pull and run Nextcloud, two commands like you said (you can/should configure a docker-compose file for persistence, and this takes a few seconds). Update? No problem, two commands! Thatās why I think Docker rocks for this.
Despite this, I donāt think Iād recommend Docker for absolute beginners. If Docker does all the magic, people wonāt bother learning how things work, and this is sad. Same thing for Snap packages. But if itās not your concern, you can definitely grab a Docker image / Snap package / VM.
Thanks, looks like Docker is the right choice. Strange though since ubuntu is all about snaps, and nextcloud has some sort of partnership with them. I couldnāt find a āsnap hubā with next cloud listed either.
Not sure why indihosters/nextcloud isnāt listed as official on docker hub. Maybe the next cloud guys need to talk to the docker hub guys and get that sorted out.
Whatās the difference between your version and the āofficialā one? Have you tried setting up LDAP/AD authentication and Letās Encrypt? Iām currently using ownCloud 8.1 (upgraded a few times from version 6) on Debian 8 and it works great, but I was curious to see how next cloud is. I didnāt like the way ownCloud was updated, manually deleting files, downloading tar files and so on. I like magic.
I upgraded from ownCloud 8.1 on Debian 8 to ownCloud 8.2 and then Nextcloud 9, 9.1 and now 10. I used the manual method each time without any issues other than some file permission stuff (caused by my server distro Yunohost doing some weird permissions stuff).
Itās not so much about upgrading without any issues (other than file permissions apparently), which of course is very important, than it is about the hassle looking up the instructions and updating manually. I know I could likely upgrade manually as I have done many times before, but its not something I want to do. Other than the upgrading process, Iām very happy with ownCloud. I was hoping nextcloud could have a solution to that pain point.
Once Nextcloud will be granted a repository here, there will be an official image on Docker Hub. Right now, indiehosters/nextcloud is built from the official Github repository which is nextcloud/docker. The main difference between our images is that the official doesnāt include a webserver, nor a cron solution, since it wants to respect the Docker philosophy ā1 container = 1 processā. This will result in a more complex setup, though Docker Compose helps a lot. Since I donāt care about this, I put everything Nextcloud needs in one single image (like the Nextcloud Box thing), except you will likely need to use an external reverse proxy which will use SSL/TLS (you can use LE certs, or whateverā¦) to encrypt the connection between the container and the Internet. This is what I do and Iām happy with that!
The docker image maintained by @Wonderfall contains the whole nextcloud Installation + additional services in one docker container (AiO = All in one), except the database.
The official docker Image is a bare minimum installation based on php-fpm. It just exposes the port for php requests that must be proxied forward to this container. That means you canāt run it out of the box, but have to use at least one additional container that is a webserver (in practice you need two, webserver and database). Other additional containers you could add would be for example a redis container for caching.
I would recommend to go with @Wonderfallās solution, itās easier to setup.
For now there arenāt many people working on the official Image and it lacks documentation, examples and structure. Hopefully we can do/see more in the future.