As my reverse proxy can change its IP address (self-healing, rolling update, etc) I resolve it only using internal DNS. I just tried and my Nextcloud install (officiel docker, no modifications) is able to resolve it.
Options for the array have been updated for readability