version: '2.1'
services:
  traefik:
    image: stefanscherer/traefik-windows
    # we need the IP of the vEthernet (HNS Internal NIC)
    command: --docker.endpoint=tcp://172.27.224.1:2375 --logLevel=DEBUG
    ports:
      - "8080:8080"
      - "443:443"
    volumes:
      - .:C:/etc/traefik
#      - C:/Users/vagrant/.docker:C:/etc/ssl

  whoami1:
    image: stefanscherer/whoami-windows
    labels:
      - "traefik.backend=whoami"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:whoami.yourdomain.com"

  whoami2:
    image: stefanscherer/whoami-windows
    labels:
      - "traefik.backend=whoami"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:whoami.yourdomain.com"

#  portainer:
#    image: portainer/portainer
#    labels:
#      - "traefik.backend=portainer"
#      - "traefik.frontend.rule=Host:portainer.yourdomain.com"

networks:
  default:
    external:
      name: nat

version: '2.4'
services:
  traefik:
    image: stefanscherer/traefik-windows
    command: --docker.endpoint=npipe:////./pipe/docker_engine --logLevel=DEBUG
    ports:
      - "8080:8080"
      - "443:443"
    volumes:
      - .:C:/etc/traefik
#      - C:/Users/vagrant/.docker:C:/etc/ssl
      - type: npipe
        source: \\.\pipe\docker_engine
        target: \\.\pipe\docker_engine

  whoami1:
    image: stefanscherer/whoami-windows
    labels:
      - "traefik.backend=whoami"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:whoami.yourdomain.com"

  whoami2:
    image: stefanscherer/whoami-windows
    labels:
      - "traefik.backend=whoami"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:whoami.yourdomain.com"

#  portainer:
#    image: portainer/portainer
#    labels:
#      - "traefik.backend=portainer"
#      - "traefik.frontend.rule=Host:portainer.yourdomain.com"

networks:
  default:
    external:
      name: nat

Use named pipe on Traefik example
Use named pipe on Traefik example
