Hi,
you can check my topic about Nextcloud AIO + Nginx Proxy server setting (as selfhosted solution).
You can find there:
- my docker-compose.yml file
- screenshots how to set up subdomain/domain in NGINX Proxy server
Feel free to contact me for other details.