# Docker nginx multiple sites

**URL:** <https://forums.docker.com/t/docker-nginx-multiple-sites/74049>\
**Category:** General\
**Created:** [April 30, 2019, 8:16pm UTC](https://forums.docker.com/t/docker-nginx-multiple-sites/74049 "2019-04-30T20:16:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucashz](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lucashz](https://forums.docker.com/u/lucashz)\
**Post date:** [April 30, 2019, 8:16pm UTC](https://forums.docker.com/t/docker-nginx-multiple-sites/74049/1 "2019-04-30T20:16:00Z")

</div>

Hello friends, i trying to use multiple sites, i got this, but i want to hide a port 4000 of my application.  
I have 2 sub domains, [demo.example.com](http://demo.example.com) and [tst.example.com](http://tst.example.com) and i want connect to [demo.example.com/api](http://demo.example.com/api) and get the xxx.xxx.xxx:4000/graphql  
how i do this?

> ```
> docker-compose.yml: 
> tst: 
> build: tst 
> environment: 
> VIRTUAL_HOST: tst.example.com 
> restart: always 
> volumes: 
> - ./tst 
> 
> demo: 
> build: demo 
> environment: 
> VIRTUAL_HOST: demo.example.com 
> restart: always 
> volumes: 
> - ./demo 
> 
> nginx-proxy: 
> image: jwilder/nginx-proxy 
> ports: 
> - "80:80" 
> - "443:443" 
> volumes: 
> - /var/run/docker.sock:/tmp/docker.sock:ro 
> 
> restart: always 
> privileged: true
> 
> ```
