this post was submitted on 01 Jan 2024
981 points (97.2% liked)

Selfhosted

39435 readers
1 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. 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.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 10 months ago (1 children)

Always works great for me.

I just run it (behind haproxy on a separate public host) in docker compose w/ a redis container and a hosted postgres instance.

Automatically upgrade minor versions daily by pulling new images. Manually upgrade major versions by updating the compose file.

Literally never had a problem in 4 years.

[–] [email protected] 4 points 10 months ago (3 children)

I'm still too container stupid to understand the right way to do this. I'm running it in docker under kubernetes and sometimes I don't update nextcloud for a long time then I do a container update and it's all fucked because of incompatible php versions of some shit.

[–] [email protected] 3 points 10 months ago

I don't remember much about how to use kubernetes but if you can specify a tag like nextcloud:28 instead of nextcloud:latest you should have a safer time with upgrades. Then make sure you always upgrade all the way before moving to a newer major version, this is crucial.

There are varying degrees of version specificity available: https://hub.docker.com/_/nextcloud/tags

Make sure you're periodically evaluating your site with https://scan.nextcloud.com/ and following all of the recommended best practices.

[–] [email protected] 1 points 10 months ago (1 children)

Kubernetetes is crazy complex when comparing to docker-compose. It is built to solve scaling problems us self-hosters don't have.

First learn a few docker commands, set some environment variables, mount some volumes, publish a port. Then learn docker-compose.

Tutorials are plenty, if those from docker.com still exist they're likely still sufficient.

[–] [email protected] 1 points 10 months ago

Yeah I'm only running it because truenas scale uses it

[–] [email protected] 1 points 10 months ago

They have an "all in one" docker installer for the above because you are far from alone here.