this post was submitted on 13 Feb 2025
9 points (90.9% liked)

Self Hosted - Self-hosting your services.

12134 readers
33 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

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

Password is right in compose and config. Idk what else to do.

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 5 days ago

Post the config in a gist or something

[–] [email protected] 4 points 5 days ago (1 children)

Have you tried the nextcloud-aio image makes things a lot easier

[–] [email protected] 1 points 5 days ago (1 children)

I read that is limited, do you know in what way?

[–] [email protected] 2 points 5 days ago

Where did you read that?

I'd say it's opinionated. You run it and you can use the provided settings but you don't get a lot of opportunity to set things up differently.

But it is a lot easier than it used to be to stand up a Nextcloud instance that works without issue.

You can also export and import data and accounts so it's pretty low risk to just give it a go.

[–] [email protected] 4 points 5 days ago (1 children)

Sorry I can't really help, but can commiserate. Nextcloud is the one service I've never gotten to run right. Not sure if its gotten any better but a year or two ago I was trying and just wasn't getting consistent results from it.

[–] [email protected] 3 points 5 days ago* (last edited 5 days ago) (1 children)

I never had problems before but if you haven't tried the All In One Install (the officially recommended way to install), then give that a go. You don't have to worry about caching and databases and things. It all runs on docker.

And just in case, the AIO container creates new docker containers so if you need to provision docker network access for a reverse proxy then make sure you've got it on the right container.

[–] [email protected] 2 points 5 days ago (1 children)

I've tried the AIO container. The issue I've had is that I already have a file system for documents and try to attach it as a network drive, it's at this point everything falls apart (not to mention just generally slow performance).

[–] [email protected] 2 points 5 days ago* (last edited 5 days ago) (1 children)

Yeah this isn't how I've used Nextcloud. I let Nextcloud manage the storage on the same server that Nextcloud is installed on. When accessed on the same network the performance of Nextcloud is miles better than the Onedrive website, which I think is a fair way to judge. It is on a decently beefy server though.

Many people had issues with Nextcloud installs because there were extra steps to get the caching and performance tweaking right. The AIO container made this part much easier by handling it for you, but just in general Nextcloud does need a bit of grunt. I think the recommendation if enabling all components is that you have 5GB RAM and 4 CPU minimum (when talking about VPS - I have it installed locally on an old gaming machine, along with other stuff).

If the AIO install is slow, then I'd guess something like the server is not powerful enough, the network is not fast enough, or the network drive access is causing lag.

[–] [email protected] 2 points 5 days ago

Appreciate the feedback!

[–] [email protected] 3 points 5 days ago* (last edited 5 days ago) (1 children)

My compose.yaml inside...

volumes:
  db:

services:
  db:
    image: mariadb:10.6
    restart: always
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    volumes:
      - db:/var/lib/mysql
    secrets:
      - mysql_root_password
      - mysql_nextcloud_password
    environment:
      - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql_root_password
      - MYSQL_PASSWORD_FILE=/run/secrets/mysql_nextcloud_password
      - MYSQL_DATABASE=
      - MYSQL_USER=

  nextcloud:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    depends_on:
      - db
    links:
      - db
    volumes:
      - /var/www/html:/var/www/html
      - /srv/data:/srv/data
    secrets:
      - mysql_nextcloud_password
    environment:
      - MYSQL_PASSWORD_FILE=/run/secrets/mysql_nextcloud_password
      - MYSQL_DATABASE=
      - MYSQL_USER=
      - MYSQL_HOST=db

secrets:
  mysql_root_password:
    file: ...
  mysql_nextcloud_password:
    file: ...

If you use the links: element in the nextcloud service, the services listed there will be available using their hostnames. On the Nextcloud setup screen, choose mysql as the database engine, use db as the database host, and enter matching values into the other fields.

[–] [email protected] 1 points 3 days ago

Thanks for sharing!

[–] logos 2 points 5 days ago

Have you tried linuxserver.io’s image?

https://docs.linuxserver.io/images/docker-nextcloud/

It’s much easier to get working.

[–] [email protected] 1 points 5 days ago

Watch a truenas setup for it snd compare the permissions maybe? I got it working on my truenas server but it takes a long time to spin up so it seemed borked but was just slow to start. Not directly comparable, I know, but any port in a storm.