test_default-host.yml 382 B

123456789101112131415161718
  1. # GIVEN a webserver with VIRTUAL_HOST set to web1.tld
  2. web1:
  3. image: web
  4. expose:
  5. - "81"
  6. environment:
  7. WEB_PORTS: 81
  8. VIRTUAL_HOST: web1.tld
  9. # WHEN nginx-proxy runs with DEFAULT_HOST set to web1.tld
  10. sut:
  11. image: nginxproxy/nginx-proxy:test
  12. volumes:
  13. - /var/run/docker.sock:/tmp/docker.sock:ro
  14. environment:
  15. DEFAULT_HOST: web1.tld
  16. HTTPS_METHOD: nohttps