test_vhost-in-multiple-networks.yml 272 B

123456789101112131415161718192021
  1. networks:
  2. net1:
  3. net2:
  4. net3:
  5. services:
  6. nginx-proxy:
  7. networks:
  8. - net1
  9. web:
  10. image: web
  11. expose:
  12. - "81"
  13. environment:
  14. WEB_PORTS: "81"
  15. VIRTUAL_HOST: web1.nginx-proxy.example
  16. networks:
  17. - net1
  18. - net2
  19. - net3