Hi. I would like to use Traefik to reverse proxy a few docker container web apps. But i cannot workout the correct setup. This is my current traefik.yaml file:
log:
level: DEBUG
api:
dashboard: true
insecure: true
certificatesResolvers:
letencrypt:
acme:
email: "claudio.filipe@outlook.com"
storage: "/letsencrypt/acme.json"
httpChallenge:
entryPoint: web
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: ":443"
https:
routers:
books:
entryPoints:
- "websecure"
rule: "Host('books.mydomain.com')"
tls:
certResolver: letencrypt
service: books
services:
books:
loadBalancer:
servers:
- url: http://192.168.0.64:25600
passHostHeader: true
192.168.0.64:25600 is the address of the docker container (running on the same server as traefik.
Running traefik with the above setup, trying to access books.mydomain.com i first get a "connection not secure" error in firefox, because it's using traefix's internal cert and not letsencrypt, and if i choose to proceed anyways i get a 404 error. If i browse to 192.168.0.64:25600 the web app is accessible.
Any advice is most appreciated