test_vhost-in-multiple-networks.yml 437 B

12345678910111213141516171819202122232425262728
  1. version: '2'
  2. networks:
  3. net1: {}
  4. net2: {}
  5. net3: {}
  6. services:
  7. nginx-proxy:
  8. image: nginxproxy/nginx-proxy:test
  9. volumes:
  10. - /var/run/docker.sock:/tmp/docker.sock:ro
  11. networks:
  12. - net1
  13. environment:
  14. HTTPS_METHOD: nohttps
  15. web:
  16. image: web
  17. expose:
  18. - "81"
  19. environment:
  20. WEB_PORTS: 81
  21. VIRTUAL_HOST: web1.nginx-proxy.local
  22. networks:
  23. - net1
  24. - net2
  25. - net3