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!!

ᓰᕵᕵᓍ
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
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
  • 19 users / day
  • 59 users / week
  • 178 users / month
  • 810 users / 6 months
  • 1 subscriber
  • 1.61K Posts
  • 9.06K Comments
  • Modlog