2
0

test_vhost-in-multiple-networks.yml 394 B

1234567891011121314151617181920212223242526
  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. web:
  14. image: web
  15. expose:
  16. - "81"
  17. environment:
  18. WEB_PORTS: 81
  19. VIRTUAL_HOST: web1.nginx-proxy.example
  20. networks:
  21. - net1
  22. - net2
  23. - net3