test_defaults-location.yml 712 B

123456789101112131415161718192021222324252627282930313233
  1. version: "2"
  2. services:
  3. nginx-proxy:
  4. image: nginxproxy/nginx-proxy:test
  5. volumes:
  6. - /var/run/docker.sock:/tmp/docker.sock:ro
  7. - ./my_custom_proxy_settings.conf:/etc/nginx/vhost.d/default_location:ro
  8. - ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro
  9. web1:
  10. image: web
  11. expose:
  12. - "81"
  13. environment:
  14. WEB_PORTS: 81
  15. VIRTUAL_HOST: web1.nginx-proxy.example
  16. web2:
  17. image: web
  18. expose:
  19. - "82"
  20. environment:
  21. WEB_PORTS: 82
  22. VIRTUAL_HOST: web2.nginx-proxy.example
  23. web3:
  24. image: web
  25. expose:
  26. - "83"
  27. environment:
  28. WEB_PORTS: 83
  29. VIRTUAL_HOST: web3.nginx-proxy.example