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.
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Follow the official documentation, nothing else comes close.
I have automated this process in my nextcloud ansible role
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 here.
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.
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 after being completely unable to use it for months
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 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 work^1^)
- 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 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.
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
I doubt most user have any need for great nc performance.
I also doubt those "super performant nextcloud flakes" are actually any faster than a plain old default nc deployment; especially for our use-cases.
Using NixOS is a good recommendation though. Just don't do flakes unless you actually understand what problem they intend to solve and how catastrophically bad they are at 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
The nextcloud helm chart is nice
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.