I am trying to place static SSL from my domain registrar to Traefik, but Traefik gives me an error that it cannot find "domain" resolver and in the end it uses the default SSL
What should I modify in my configuration?
####################### traefik.yaml ############################
log:
level: "DEBUG"
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
providers:
docker:
exposedByDefault: false
watch: true
api:
insecure: true
dashboard: true
tls:
stores:
domain:
defaultCertificate:
certFile: "/certs/domain.cert"
keyFile: "/certs/private.key"
################## traefil.yml ##################################
version: '3.3'
services:
traefik:
image: "traefik:v2.7"
command:
- "--configFile=/etc/traefik/traefik.yaml"
ports:
- "80:80"
- "443:443"
- "8080:8080"
networks:
- net
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik.yaml:/etc/traefik/traefik.yaml"
- "./certs:/certs"
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(traefik.domain.com
)" # domain example
- "traefik.http.routers.api.entrypoints=websecure"
- "traefik.http.routers.api.tls=true"
- "traefik.http.routers.api.tls.certresolver=domain"
networks:
net:
external: true