If you add the self-signed certificate as a CA e.g.
- --serverstransport.rootcas=/ca.pem
You can avoid the insecureskipverify
you just need to make the file accessible by traefik example
volumes:
- /d/p/trajano.net/devops-ca-R2.crt:/ca.pem
Here's the relevant chunk from Trajano base Docker swarm stacks