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 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 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
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.
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.
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.
The nextcloud helm chart is nice
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
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.