test_defaults-location.yml 702 B

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