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?
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.
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.
This.
Shameless promo for a book I wrote featuring same: https://selfhostbook.com/
I use the linuxserver images for Nextcloud. Have worked pretty well for me over the past few years.
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.
Follow the official documentation, nothing else comes close.
I have automated this process in my nextcloud ansible role
I used this as a solid base. It’s more flexible than the AIO containers. Annoying thing about NC is that, as far as I can tell, none of the LDAP settings are exposed as environmental variables.
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.
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