Welcome! Log In Create A New Profile

Advanced

Docker nginx multiple sites

Posted by lucashz 
Docker nginx multiple sites
April 30, 2019 03:54PM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready