Closed bcowell closed 4 years ago
Hi @bcowell Thanks for trying Traefik on Windows. Currently I'm trying Traefik on Windows Server 2019 / Windows 10 1809, but I had not yet time to run it in swarm mode. I first updated the docker-compose example in this repo to get rid of the TLS certs by using the named pipe. My next steps are to try swarm mode as described in https://dockerswarm.rocks, but on a Windows Server 2019.
Hey @StefanScherer ,
No worries. Thanks for the link it looks promising!
Hi @StefanScherer , thank you very much for the project, it's helping us a lot!
Unfortunately, right now, I've got the same issue as @bcowell because, in Swarm Mode, Traefik does not detect services created on overlay networks.
I'm using this docker-compose inside Windows Server 2019 (docker version 18.09.1):
version: '3.4'
services:
traefik:
image: stefanscherer/traefik-windows
command: --docker --docker.watch --web --docker.endpoint=npipe:////./pipe/docker_engine --logLevel=DEBUG
ports:
- "8080:8080"
- "85:80"
isolation: process # workaround for https://github.com/containous/traefik/issues/4409
volumes:
- .:C:/etc/traefik
- type: npipe
source: \\.\pipe\docker_engine
target: \\.\pipe\docker_engine
networks:
default:
external:
name: nat
Then, I try to create a service:
docker service create --name=tbbackend --replicas 5 --endpoint-mode dnsrr
--label "traefik.enable=true" --label "traefik.port=10000" --label "traefik.backend=tbbackend"
--label "traefik.frontend.rule=PathPrefix:/" --label "traefik.backend.loadbalancer.sticky=true"
--label "traefik.docker.network=nat" myrepo/tbbackend:v1
Traefik can't redirect the calls on the various service endpoints and, also, entering the dashboard (:8080), all I can see is a blank page...
Hope you can help me in some way :)
Thanks again!
Cheers, Mattia
This dont working in Stack file
type: npipe
source: \\.\pipe\docker_engine
target: \\.\pipe\docker_engine
@mmgil This will work in the next release of Docker EE as the PR for it got merged. I used the nightly builds to demo it in February at a conference.
@StefanScherer What version of Docker EE supports this?
@jbella it‘s the 19.03 release, there are release candidates available and the final release will be in the near future.
Thanks for the info @StefanScherer
Is running the 19.03-ee the only way to get Traefik to run on a Windows Swarm cluster? (I am currently running 18.09.7 on Windows Server 2019)
I have software that is currently working using linux containers using Traefik as the loadbalancer. I am trying to figure out the best way (most production ready) to get this working on a windows based swarm cluster. It looks like the LCOW stuff is still pretty experimental so I thought I would try the route of building windows containers for my software.
Hi folks, Again awesome with with the docker on windows. I still can't get the traefik service to run in a docker swarm. I'm running the EE 19.03.1 version and using the below i still get 'services.traefik.volumes.0 must be a string'
Closing this, nothing I can do in this repo.
Hi Stefan,
First of all thank you for all your work in the windows docker community.
Background: I've used your traefik-windows dockerfile successfully with docker compose on Windows Server 2016 and am able to view the dashboard of online services as well as use the whoami service. However I plan on creating many more swarm services in the future and would like to be able to spin up new swarm services via CLI (docker service create ...) instead of docker-compose.
Problem: I was able to edit your docker-compose file to work with an external overlay network and it works exactly the same. However when I attach new swarm services to the overlay network they aren't available through traefik, nor can I run a traefik service (the url of the dashboard just hangs indefinitely).
Working docker-compose.yaml with overlay network
traefik.toml
docker-compose.yaml
Traefik dashboard at :8080
Trying to create another whoami service and attach to the overlay network:
Log output of creating service
I've also tried many variations of options for the service like:
--publish mode=host,target=8080
--label traefik.docker.network=traefik
--label traefik.port=80 (and 8080)
--endpoint-mode=dnsrr
with no luck.Expected result: The whoami2 service should show up on the traefik dashboard and I should be able to access it from /whoami2
Actual result:
Any help would be appreciated.
Thanks, Brayden