you can find different setups in the compose files

GitHub nextcloud/docker ⛴ Docker image of Nextcloud. Contribute to nextcloud/docker development by creating an account on GitHub.

or here

GitHub ReinerNippes/nextcloud_on_docker Run Nextcloud in Docker Container on various Linux Hosts - ReinerNippes/nextcloud_on_docker

just: just: Is postgresql a different Docker container that is linked to Nextcloud?

yes. or no. but better yes. if you choose docker use it for everything.

just: just: why would I use the fpm container

if you want to use nginx as a webserver or run the web server on a different machine. (loadbalancing).

just: just: I want to add LibreOffice/Collabora

in my playbook this is work in progress. sorry.

more or less what is done in my other playbook.

GitHub ReinerNippes/nextcloud Ansible playbook to install nextcloud, php, nginx, mariadb or postgres, redis-server, onlyoffice or collabora office - ReinerNippes/nextcloud

if you want to run them it’s best to test them in a virtual machine before. (e.g. virtualbox, aws, azure, digital ocean, scaleways,etc. pp.)

just: just: and hear a reverse proxy is the way to go

if you have a normal home router you want it to forward ip packages to port 80&443 to your nextcloud box. that’s all you need to access the box from outside.

to set up something for security is always a good idea.

memcaching and Redis are important if you have a lot of traffic on your server. family servers are ok without. on the other hand when you run a 8gb machine use them.