I have a swarm with Traefik and other services. I have a docker-compose container in the same network, but not in the swarm (as it requires privileged access). Nevertheless, I can ping that container from Traefik. As the service it outside the swarm, I am trying to configure it as a static service, using the file provider. As far as I can understand, I should be quite near the proper solution. But I am getting a "Service Unavailable". Some insights are welcome.
Hi, @cakiwi .
Yes, I have. As I said, I am able to ping the container from inside the bash of Traefik container.
Also, just for testing, I tried to use the IP directly on the URL, and it still didn't work.
To be sure the request wasn't being rejected by the service, I tried to wget it from a temporary container, and it is answering and logging. When I try to access the domain through Traefik, the service doesn't log any request.
Thanks for any help,
Alberto
Hi
Yeah, you are correct. Unfortunately that is not the problem. I did test a lot of combinations, and I didn't notice that I was posting a stupid approach. As you can see, I even have two lines commented for port and scheme.
My current attempt is with https and port specified, as updated in the original message.
Thank you
Yes, that is it. I would recommend json format for the accesslogs, as there is more information in it, such as Origin Response. You can add it to the CLF format logs too if you wish.
You could try insecureSkipVerify option at the service level too.
Well that certainly looks to me like the 503 is coming from the origin. Its not liking something that is coming from traefik. Is the service expecting a certain SNI ?
Sorry for my ignorance, what is a SNI? I tried googling, but I didn't understand it properly.
Just for reference, I was using traefik without swarm mode, and this service was working. As now I am putting traefik in swarm, and the service from a compose, I can't use the same configuration (labels in the service).
These were my labels when the system was running without swarm mode (and it worked):
Ooops, I could have shared that before. With the masking of the URLs forgot to specify that.
It is Pritunl VPN server (that requires privileged access, and thus, can't be run under swarm).
Sharing here the static config too, in case I am doing some mistake there: