docker-compose.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. services:
  2. squid_basic:
  3. image: squid_basic
  4. restart: always
  5. ports:
  6. - "3128:3128"
  7. build:
  8. context: ./
  9. args:
  10. auth: basic
  11. squid_digest:
  12. image: squid_digest
  13. restart: always
  14. ports:
  15. - "3129:3129"
  16. build:
  17. context: ./
  18. args:
  19. auth: digest
  20. # Self-hosted stand-in for the httpbin.org-style auth-testing endpoints
  21. # (/basic-auth, /digest-auth) that BaseAuthTest/DigestAuthTest exercise
  22. # through the proxies above, so those tests don't depend on an external
  23. # site's uptime.
  24. httpbin_backend:
  25. image: mccutchen/go-httpbin:latest
  26. restart: always
  27. # TLS termination in front of httpbin_backend (which only speaks plain
  28. # HTTP) so the SSL variants of those tests can CONNECT-tunnel through the
  29. # proxies to "httpbin" on port 443, same as the NoSSL variants do on 80.
  30. httpbin:
  31. image: nginx:alpine
  32. restart: always
  33. depends_on:
  34. - httpbin_backend
  35. volumes:
  36. - ./httpbin_nginx.conf:/etc/nginx/conf.d/default.conf:ro
  37. - ../cert.pem:/etc/nginx/certs/cert.pem:ro
  38. - ../key.pem:/etc/nginx/certs/key.pem:ro