Docker + nginx + letsencrypt : works on LAN but can't acces from outside (502 bad gateway)

Hi there !
I have the same probleme as others, but I couldn’t make their solution work for me (or didn’t understood them ^^), so I open another thread.
As said in the title, I running docker on windows 10, with linux containers. I have

Command used for nginx :

docker run -d --name=nginx-proxy
-p 80:80 -p 443:443
-v /var/lib/docker/volumes/nginx/_data/certs:/etc/nginx/certs:ro
-v /var/lib/docker/volumes/nginx/_data_dhparam:/etc/nginx/dhparam
-v /etc/nginx/vhost.d
-v /usr/share/nginx/html
-v /var/run/docker.sock:/tmp/docker.sock:ro
–restart always
–label com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy jwilder/nginx-proxy:latest

Command used for letsenrypt :

docker run -d --name=lestencrypt
-v /var/lib/docker/volumes/nginx/_data/certs:/etc/nginx/certs:rw
-v /var/run/docker.sock:/var/run/docker.sock:ro
–volumes-from nginx-proxy
–restart always
-e “
-e DEBUG=true jrcs/letsencrypt-nginx-proxy-companion

Command for nextcloud :

docker run -d --name=nextcloud
-p 8080:80
-v /var/lib/docker/volumes/nextcloud/_data/data:/var/www/html
-v /var/lib/docker/volumes/nextcloud/_data/database:/var/lib/mysql
-v d:/:/4to -v e:/:/10to
–restart always nextcloud

I tried to add

‘overwriteprotocol’ => ‘https’,

to the config file, but I just couldn’t acces from lan anymore.

I don’t remember doing anythyng else last time I build everything. So that’s why I calling for your help : )