this post was submitted on 29 Dec 2023
108 points (98.2% liked)

Selfhosted

40329 readers
508 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
 

Just wanted to share my happiness.

AIO is the new (at least on my timeline) installation method of Nextcloud, where most of the heavy-lifting is taken care of automatically.

https://github.com/nextcloud/all-in-one

all 35 comments
sorted by: hot top controversial new old
[–] [email protected] 20 points 10 months ago

curl -fsSL https://get.docker.com | sudo sh

Jesus Ritchie Christ, can we de-normalize 'run anonymous superscript as root' bullshit? It's dumb when Oracle does it, it's dumb when SuSE does it. It's dumb all the time.

[–] cybersandwich 16 points 10 months ago (2 children)

I could never get the AIO setup to work well for some reason. It was also a couple versions behind it seemed.

I...uh...know it's not popular on the fed, but I use the nextcloud snap package and it's been rock solid. It's always up -to-date and they have a backup/export feature too.

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

I feel like that is what snaps are for, long running server applications.

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

Didn't knew it exists. That might make me give nextcloud another chance. Thanks man.

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

Welcome. I use it in conjunction with Fedora CoreOS so I hopefully never have to manually update anything ever again.

[–] twack 5 points 10 months ago* (last edited 10 months ago) (2 children)

I was about to ask why this is better than the docker installation, but I see step one is to install docker haha.

I've been running the docker container for a long time, it works very well. It is a bit more complicated if you try and use extensions that require seperatw containers (like setting up collabora), but that can be done as well. It's just more complicated.

I do remember needing to know how to access the internal terminal a few times, but I don't remember why. If I think of it I'll come back and add instructions.

Edit: It's to be able to run occ commands:

Sudo docker exec -u www-data nextcloud-app php occ "Command goes here"

Sudo docker exec -u www-data nextcloud-app php occ files:scan --all

[–] ikidd 2 points 10 months ago

As a former self-configured docker compose NC user, I have to say I'm way happier with the AIO. But still, the older docker method was head and shoulders over any other method of running NC that I'd used.

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

With AIO it's almost the same: sudo docker exec -u www-data nextcloud-aio-nextcloud php occ

[–] roofuskit 12 points 10 months ago (2 children)

This is all in one container? That is the exact wrong way to use docker.

[–] vortexsurfer 24 points 10 months ago (3 children)

No, you give the AIO container access to your docker daemon and it will create / handle / supervise all the other containers nextcloud needs.

[–] haplo 4 points 10 months ago (1 children)

I appreciate the simplicity, but giving such broad permissions makes me unease and the main reason why I'm putting off moving to Nextcloud AIO. Am I the only one who thinks like this?

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

Its OK if you have a dedicated VM just for nexcloud

[–] genie 4 points 10 months ago

Love me some docker compose! I switched from a manually built VM over to the AIO setup about a year ago and never looked back. It's been rock solid for me and my ~10 users so far.

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

Damn, why not use k8s at that point

[–] ikidd 2 points 10 months ago* (last edited 10 months ago) (1 children)

It containerizes all the subcomponents under a mastercontainer, and even has support for community containers of things like pihole, caddy and dlna. So you have image control over each component, as well as codespace separation.

After 7 or 8 years of various forms of Nextcloud, I have to say this is the easiest one to maintain, upgrade and backup outside of my VM snapshots.

[–] roofuskit 1 points 10 months ago (2 children)
[–] ikidd 1 points 10 months ago

Not really, it just makes containers in your docker, accessible like any others. The mastercontainer can be used to control and update them, but you can just exec -dit them like any other containers you find in your docker ps

[–] namelivia 10 points 10 months ago (1 children)

I'm still using the self hosted docker image, the all in one is too bloated for me and my computing resources are quite limited. Why would I like an antivirus? Or a backup solution different than the one I use to backup the rest of my containers?

Cool initiative anyway for other kind of users though.

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

Running the AV container is optional, as is using the integrated backup solution. But I can see how that might feel bloated if you don't need it.

[–] rambos 6 points 10 months ago (1 children)

One of the first services on my server was nextcloud in docker container from lsio. Never had problems so there was no need to try AIO, but so many people recommend that, it will be my next setup if this one fails me

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

I decided to go with this one because it's now the official distribution channel and supported by the devs. But the lsio one looks pretty solid as well.

[–] PoopMonster 6 points 10 months ago

I wish I could've like next cloud more, but it seemed bloated as all hell and was slow regardless of what machine I tried running it on :(. I might give it another go one day.

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

Nextcloud is a web-based, open-source cloud / collaboration software suite, which can be self-hosted

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

I'm setting it up. Only having some issues with proxy manager and cloudfare combo.

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

This has helped me a lot in my scenario.

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

Yes thanks. I'm using it already but for now can't get it working.

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

Yes I've not managed to solve this yet. For me, it's hosting AIO behind my existing Nginx.

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

Behind existing Nginx? Do you mean that you are not using Nginx and only cloudfare tunnel?

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

As in, I have Nginx running on my server and use it as a reverse proxy to access a variety of apps and services. But can't get it playing nicely with AIO Nextcloud.

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

That's my issue too.