Post the config in a gist or something
Self Hosted - Self-hosting your services.
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
- No harassment
- crossposts from c/Open Source & c/docker & related may be allowed, depending on context
- Video Promoting is allowed if is within the topic.
- No spamming.
- Stay friendly.
- Follow the lemmy.ml instance rules.
- Tag your post. (Read under)
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!
- Lemmy doesn't have tags yet, so mark it with [Question], [Help], [Project], [Other], [Promoting] or other you may think is appropriate.
Cross-posting
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed if topic has to do with selfhosting.
- [email protected] is allowed!
If you see a rule-breaker please DM the mods!
Have you tried the nextcloud-aio image makes things a lot easier
I read that is limited, do you know in what way?
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.
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.
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.
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).
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.
Appreciate the feedback!
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.
Thanks for sharing!
Have you tried linuxserver.io’s image?
https://docs.linuxserver.io/images/docker-nextcloud/
It’s much easier to get working.
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.