test_virtual-host.yml 777 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. services:
  2. # custom http and https ports
  3. web1:
  4. image: web
  5. expose:
  6. - "81"
  7. environment:
  8. WEB_PORTS: "81"
  9. VIRTUAL_HOST: web1.nginx-proxy.tld
  10. EXTERNAL_HTTP_PORT: "8080"
  11. EXTERNAL_HTTPS_PORT: "8443"
  12. # custom https port only
  13. web2:
  14. image: web
  15. expose:
  16. - "82"
  17. environment:
  18. WEB_PORTS: "82"
  19. VIRTUAL_HOST: web2.nginx-proxy.tld
  20. EXTERNAL_HTTPS_PORT: "8443"
  21. # custom http port only
  22. web3:
  23. image: web
  24. expose:
  25. - "83"
  26. environment:
  27. WEB_PORTS: "83"
  28. VIRTUAL_HOST: web3.nginx-proxy.tld
  29. EXTERNAL_HTTP_PORT: "8080"
  30. # default http and https ports
  31. web4:
  32. image: web
  33. expose:
  34. - "84"
  35. environment:
  36. WEB_PORTS: "84"
  37. VIRTUAL_HOST: web4.nginx-proxy.tld