test_proxy-wide.yml 487 B

12345678910111213141516171819202122
  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/conf.d/my_custom_proxy_settings_f00.conf:ro
  7. web1:
  8. image: web
  9. expose:
  10. - "81"
  11. environment:
  12. WEB_PORTS: 81
  13. VIRTUAL_HOST: web1.nginx-proxy.example
  14. web2:
  15. image: web
  16. expose:
  17. - "82"
  18. environment:
  19. WEB_PORTS: 82
  20. VIRTUAL_HOST: web2.nginx-proxy.example