Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Docker nginx multiple sites

$
0
0
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 and tst.example.com and i want connect demo.example.com/api and get the xxx.xxx.xxx:4000/graphql
how i do this?

my file docker
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>