How to enforce 'https' only for nextcloud docker running with nginx reverse proxy docker?

How can you enforce ‘https’ connections with nginx reverse proxy and nextcloud running as docker images? Also how can you specify this in the docker-compose.yml?

Thanks!

like this docker/.examples/docker-compose/with-nginx-proxy-self-signed-ssl at master · nextcloud/docker · GitHub ?