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!!
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
allowed domains
docker exec --user www-data container_id php occ config:system:set trusted_domains 2 --value=your_domain_name_here