How to Configure Traefik to Use Existing TLS Certificates
- Create a new file
tls: stores: default: defaultCertificate: certFile: /etc/traefik/certs/your-domain.dev/cert.pem keyFile: /etc/traefik/certs/your-domain.dev/privkey.pem
- Make sure you're copying this file in your
COPY .docker/traefik/conf.d/tls.yml /etc/traefik/tls.yml
- Mount the
certsfolder in your
volumes: ... - .docker/traefik/certs:/etc/traefik/certs ...
- Update the
traefik.ymlconfig to support the
providers: ... file: filename: "/etc/traefik/tls.yml ...