/nginx-proxy

run multiple docker apps using single nginx container with dynamic template

Primary LanguageDockerfile

nginx-proxy

Run multiple docker apps using single nginx container with dynamic template.

Usage:

---
version: '3.7'
services:
  .....
  environment:
    ....
    VIRTUAL_HOST: app1.example.com
    VIRTUAL_PORT: 9000
---
version: '3.7'
services:
  .....
  environment:
    ....
    VIRTUAL_HOST: app2.example.com
    VIRTUAL_PORT: 9001