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
- nginx (GitHub - nginx-proxy/nginx-proxy: Automated nginx proxy for Docker containers using docker-gen,
- letsencrypt (GitHub - nginx-proxy/acme-companion: Automated ACME SSL certificate generation for nginx-proxy),
- and among other containers, nextcloud (https://github.com/nextcloud/docker).
I can access all my other containers from internet, and I could some weeks ago with nextcloud, but I donāt know if I did something or if an update messed with some things, but now, I canāt acces Nextcloud from internet (but lan works fine).
Imā not sure what informations could be usefull to you, so I give you some and feel free to ask for more : )
Command used for nginx :
docker run -d --name=nginx-proxy
-p 80:80 -p 443:443
-e DEFAULT_HOST=XXX.com
-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 āDEFAULT_EMAIL=XXX@XXX.comā
-e DEBUG=true jrcs/letsencrypt-nginx-proxy-companion
Command for nextcloud :
docker run -d --name=nextcloud
-p 8080:80
-e VIRTUAL_HOST=XXX.com
-e VIRTUAL_PORT=8080
āexpose=8080
-e LETSENCRYPT_HOST=XXX.com
-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 : )
Thanks