# Understanding docker, NextCloud and nginx-reverse-proxy

**URL:** <https://forums.docker.com/t/understanding-docker-nextcloud-and-nginx-reverse-proxy/39420>\
**Category:** General\
**Created:** [October 7, 2017, 8:47pm UTC](https://forums.docker.com/t/understanding-docker-nextcloud-and-nginx-reverse-proxy/39420 "2017-10-07T20:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpatterer](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@cpatterer](https://forums.docker.com/u/cpatterer)\
**Post date:** [October 7, 2017, 8:47pm UTC](https://forums.docker.com/t/understanding-docker-nextcloud-and-nginx-reverse-proxy/39420/1 "2017-10-07T20:47:45Z")

</div>

Dear all,

I am not sure if I am right here and I fear this is a question that has been asked over and over - however, I did not find an understandable answer yet. Probably my issue is just a lack of understanding how certain things work with Doker.

I have the following situation: I would like to install NextCloud with nginx as reverse proxy and ideally Let’s Encrypt integraiton for https. However, I have already issues with the reverse proxy. I am running the following to set up my environment:

docker volume create nc\_ext\_db  
docker volume create nc\_ext\_html  
docker run -d --name nc\_ext\_nginx-proxy -p 80:80 -v d:/temp/nc\_extern/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy  
docker run -d --name nc\_ext\_mariadb -v nc\_ext\_db:/var/lib/mysql -e MYSQL\_ROOT\_PASSWORD= --restart always mariadb  
docker run -d --name nc\_ext -p:8889:80 -v nc\_ext\_html:/var/www/html --restart always --link nc\_ext\_mariadb:mysql -e VIRTUAL\_HOST=[something.org](http://something.org) nextcloud

Now my understanding was via the reverse proxy I should be able to reach my web site via the domain name, but it does not work. How would the proxy know that it needs to forward the request? I hope my question makes somwhat sense and is in the right place. If not, sorry for that - please let me know and I look in a different place.

Thanks,  
Chirs
