I can't figure out how to run traefik v2 on a Windows host (traefik.exe) using the Docker provider.
with this config https://raw.githubusercontent.com/containous/traefik/master/traefik.sample.toml
on a Win Server 2019 LTSC 1809 host
gets me a non-working dashboard (the interface is greyed out and not functional)
I made one change in the sample config, in the [providers.docker] section:
endpoint = "npipe:////./pipe/docker_engine"
Does anyone have a working config for the Docker provider and with the necessary changes needed for Windows? Or if there's some official docs that I missed on this.
I managed to run and access the dashboard with this docker-compose.yml, but my services wouldn't come up:
version: '3' services: reverse-proxy: image: traefik:v2.1.4-windowsservercore-1809 command: --api.insecure=true --providers.docker ports: - "80:80" - "8080:8080" volumes: - .:C:/etc/traefik
I think I need to do something under "volumes", like:
- type: npipe source: \\.\pipe\docker_engine target: \\.\pipe\docker_engine
But that gets me an error from docker-compose:
ERROR: The Compose file '.\docker-compose.yml' is invalid because: services.reverse-proxy.volumes contains an invalid type, it should be a string
Stefan Scherers docker-compose files for Traefik v1 works, but I'm not looking to run v1.