2
0

test_default-host.yml 409 B

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