Hi all,
I need to use a servers transport configuration defined in my static file (trafik.yml) into a docker-compose file:
Static file configuration is:
...
serversTransports:
insecureTransport:
insecureSkipVerify: true
homelabTransport:
certificates:
- certFile: /etc/traefik/certs/homelab-crt.pem
keyFile: /etc/traefik/certs/homelab-key.pem
...
In my docker compose file I've used:
labels:
- "traefik.enable=true"
- "traefik.http.routers.influxdb.rule=Host(`service.example.com`)"
- "traefik.http.routers.influxdb.tls=true"
- "traefik.http.routers.influxdb.entrypoints=web, websecure"
- "traefik.http.services.influxdb.loadbalancer.server.port=8086"
- "traefik.http.services.influxdb.loadbalancer.server.scheme=https"
- "traefik.http.services.influxdb.loadbalancer.serverstransport=homelabTransport"
But when the containers starts I got this error on traefik log:
level=error msg="servers transport not found homelabTransport@docker" routerName=websecure-influxdb@docker entryPointName=websecure
What am I doing wrong here? Is it possibile to use a static file entity in the dynamic configuration?
I've an https service that used a self signed certificate and I'm trying to create a load balancer rule from trafik to this service.
Thanks in advanced