test_default-host.yml 395 B

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