TLDR: I consistently fail to set up Nextcloud on Docker. Halp pls?

Hi all - please help out a fellow self-hoster, if you have experience with Nextcloud. I have tried several approaches but I fail at various steps. Rather than describe my woes, I hope that I could get a “known good” configuration from the community?

What I have:

  • a homelab server and a NAS, wired to a dedicated switch using priority ports.
  • the server is running Linux, Docker, and NPM proxy which takes care of domains and SSL certs.

What I want:

  • a docker-compose.yml that sets up Nextcloud without SSL. Just that.
  • ideally but optionally, the compose file might include Nextcloud office-components and other neat additions that you have found useful.

Your comments, ideas, and other input will be much appreciated!!

dinckelman
link
fedilink
21Y

Have you tried their AIO stack? It’s really easy to setup, but I haven’t gone beyond that because of performance issues on my server

@robolemmy@lemmy.world
link
fedilink
English
21Y

I’m not sure if your goal is to set up nextcloud or to learn docker compose while setting up nextcloud. If you just want it up and running, you could use DockSTARTer to get it going. Heck, even if your goal is mainly learning, you can always tear apart the compose file that dockstarter generates and compare it to your own.

ᓰᕵᕵᓍ
link
fedilink
English
1
edit-2
1Y

With nginx

https://github.com/nextcloud/docker#base-version---fpm

With caddy

https://caddy.community/t/example-docker-nextcloud-fpm-caddy-v2-webserver/9407

I oersonaly run fpm with caddy

Remember to create your admin account on first run and then add your trusted domain

Admin

  • navigate to localhost:8080
  • create admin acount
  • write down your credestials

allowed domains

  • docker ps
  • copy container id of nextcloud:fpm
  • docker exec --user www-data container_id php occ config:system:set trusted_domains 2 --value=your_domain_name_here
  • docker stop container_id
  • docker start container_id
@cwista@lemmy.world
link
fedilink
English
11Y

I would recommend going with the Docker AIO install, it does a lot of the heavy lifting for you as well as dealing with backups and updates for long term maintenance.

PHLAK
link
fedilink
English
21Y

I put together a repo that you should be able to pull down and get running pretty quickly using docker compose. Check it out and let me know if you have any questions.

https://github.com/PHLAK/nextcloud-compose

As others have commented, Nextcloud provide an all-in-one docker set up. I managed to follow the instructions and get it working.

However, in the end, I wanted this to replace my Dropbox subscription, and my files and reliable access to them are important to me. Given that, and my relatively low skill level, I didn’t want to futz with troubleshooting failed updates and server issues, so I just went with a Hetzner storage share, which is their managed nextcloud subscription: https://www.hetzner.com/storage/storage-share

A bit of a sidenote and definitely an unpopular opinion coming up… The nextcloud snap is perhaps the easiest and among the most stable ways to run NC. And I base this on my own experience, having installed and tested NC on numerous devices in several ways. You loose some tinkerability and the performance is nothing to write home about. And yes I know - snap no good - Canonical evil. That having been said, If stability and easy setup is what you want, it’s worth considering.

@rarkgrames@lemmy.world
link
fedilink
English
11Y

I’ve been fighting nextckoud over the last few days. I got it up and running, yay. But the. I could not get Nextcloud office or Onlyoffice to work at all.

I used the AIO docker install and followed all the instructions for setup behind cloudflare tunnels but I’m guessing it’s something to do with that, but I just don’t have the time or patience to spend hours trying to troubleshoot why I can install onlyoffice but it won’t allow me to create documents.

I may revisit in the future but the frustration levels are just too high atm.

@gobbling871@lemmy.world
link
fedilink
English
1
edit-2
1Y

Maybe give cloudflared a try. Works for me even with nextcloud’s ssl (don’t think there’s a way to start NC without the self-signed cert). Couldn’t get it to work with NPM (I admittedly don’t know much about nginx) so I brought in the big gun(s).

Create a post

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!

  • 1 user online
  • 16 users / day
  • 57 users / week
  • 177 users / month
  • 809 users / 6 months
  • 1 subscriber
  • 1.61K Posts
  • 9.06K Comments
  • Modlog