I tried setting up the all in one container on a computer I have at home and it was a bit of a mess to get set up. Back in the day I used an ansible script to set up nextcloud and that seemed much better. Any advice or pointers?
Follow the official documentation, nothing else comes close.
I have automated this process in my nextcloud ansible role
I really need to make my write-up about my nextcloud install. It feature :
- nextcloud fpm
- postgresql
- nginx
- redis
- elastic search for full text search (still needs a bit of work1)
- notify_push
- collabora (still needs a bit of work 1)
All of it running in rootless podman pod with a dedicated user for the stack. It is all with podman units, and a systemd timer for nextcloud’s cronjobs.
1 means that there is trouble with usermapping. Instead of having my user properly mapped inside the container to run the apps, they use a dedicated one and I dont know hot to correct it and I have been a bit lazy to change it.
I use the community maintained docker container from https://github.com/nextcloud/docker
It’s separate containers for all the services, if you scroll down the readme you’ll find the compose file they recommend to start you out.
This.
Shameless promo for a book I wrote featuring same: https://selfhostbook.com/
Same, I use the fpm-alpine image with mariadb, though if I had to start today I’d probably pick postgres instead. Other images are probably fine too.
Same here.
I use the linuxserver images for Nextcloud. Have worked pretty well for me over the past few years.
Other opinion: I used that one for a few years and then it became unbootable, forever loading the login page with not an error in the logs (after multiple times of having to diagnose update failures in the past).
I found out that I personally didn’t need nextcloud.
This has some limitations if I remember correctly. It doesn’t use PostgreSQL, and I don’t think you can use Collabora or whatever, so editing documents in your browser won’t work.
It’s quite possible that I’m wrong about that.
The container was rebuilt a couple of years ago and I don’t think it has any significant limitations now. There are examples using mariadb (which I’m using) and I don’t see why PostgreSQL wouldn’t be configurable in the same way.
I currently run Nextcloud inside a Debian 11 LXC container on Proxmox, together with Apache, Mariadb, and PHP. I followed this guide. Once Apache and PHP were running, the rest of the process was straightforward.
I moved from Nextcloudpi some time back & found THIS TUTORIAL far & away the most useful. Instead of just saying copy/paste a Docker Compose file he shows how to build it step by step using Portainer so i found it invaluable for future projects.
It seems a bit overwhelming initially but once you’ve installed it a few times you’ll be able to do it from scratch in less than an hour. Probably less as it sounds like you already know what’s what having used Ansible
nowadays, might be worth looking into nix flakes
tons of super performant nextcloud flakes being uploaded to github, difficulty is understanding nix, but it’s worth it
The nextcloud helm chart is nice
If you like ansible, MASH works pretty well.
Ive hosted on a variety of platforms (docker in house and cloud) I find yunohost the easiest. Theres a nextcloud package that just…installs at a click of a button. And the scripts are all there open source so you know what your getting.
Unfortunately its still all in one “container” in that its all on one machine. So it might not be what your looking for. Ive ran my nextcloud for a number of years now and the stability of yunohost has been great for me.