version: "3.8"
services:
  whoami:
    image: traefik/whoami
    labels:
      traefik.http.routers.route1.rule: PathPrefix(`/foo`)
      traefik.http.routers.route1.middlewares: passtls
      traefik.http.routers.route1.tls: true
      traefik.http.middlewares.passtls.passtlsclientcert.pem: true

networks:
  default:
    name: traefik-test-network
    external: true