Traefik and self-signed SSL Traefik and self-signed SSL docker docker

Traefik and self-signed SSL


Probably a path mismatch, particularly with some paths relative and others absolute. Try the following in your compose file (relative path to local certs):

volumes:  - /var/run/docker.sock:/var/run/docker.sock  - ./traefik.toml:/traefik.toml  - ./certs:/certs

And then switch to an absolute path in the toml (leading slash on certs):

[entryPoints]  [entryPoints.http]  address = ":80"  [entryPoints.https]  address = ":443"  [entryPoints.https.tls]    [[entryPoints.https.tls.certificates]]    certFile = "/certs/www.example.co.uk.crt"    keyFile = "/certs/www.example.co.uk.key"