Can't get Traefik to work with home assistant

Hi, after my recently moved my home assistant from a pi3 to an old Thinkpad. The Thinkpad runs a brand new ubuntu server installation. I use duckdns as dydns. My Router is a Fritz!Box with port 80,8080,443 and 8123 forwarded to my Thinkpad.

I run traefik and home assistant via docker-compose. My compose file looks like this:

version: "3"

services:
  traefik:
    image: traefik:v2.2
    container_name: traefik
    command:
      - "--log.level=DEBUG"
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.websecure.address=:443"
      - "--certificatesresolvers.myresolver.acme.tlschallenge=true"
      - "--certificatesresolvers.myresolver.acme.email=redacted"
      - "--certificatesresolvers.myresolver.acme.storage=/certs/acme.json"
    ports:
      - "80:80"
      - "443:443"
      - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./certs:/certs
    extra_hosts:
      - host.docker.internal:172.17.0.1 

  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /home/bewi/homeassistant/config:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    devices:
      - /dev/hci0
    restart: unless-stopped
    privileged: true
    network_mode: host
    labels:
      - traefik.enable=true
      - traefik.http.routers.homeassistant.rule=Host(`redacted.duckdns.org`)
      - traefik.http.routers.homeassistant.entrypoints=websecure
      - traefik.http.routers.homeassistant.tls.certresolver=myresolver
      - traefik.http.services.homeassistant.loadbalancer.server.port=8123

volumes:
  letsencrypt:
  homeassistant:

This is the Debug log from traefik:

traefik          | time="2022-09-06T08:51:46Z" level=debug msg="TLS Challenge CleanUp temp certificate for redacted.duckdns.org" providerName=acme
traefik          | time="2022-09-06T08:51:47Z" level=debug msg="legolog: [INFO] Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz-v3/150317954327"
traefik          | time="2022-09-06T08:51:47Z" level=error msg="Unable to obtain ACME certificate for domains \"redacted.duckdns.org\": unable to generate a certificate for the domains [redacted.duckdns.org]: error: one or more domains had a problem:\n[redacted.duckdns.org] acme: error: 400 :: urn:ietf:params:acme:error:connection :: redacted: Error getting validation data, url: \n" rule="Host(`redacted.duckdns.org`)" providerName=myresolver.acme routerName=homeassistant@docker

Im out of ideas what else I could try to get https working

I have the same problem. Everything seems to be working but get this error message in the end. Did you find any solution to your problem? I would be very thankful for a hint.