Bad Gateway Error with a Traefik Reverse Proxy

Hi everyone, I'm setting up Channels on Docker running behind a Traefik reverse proxy that keeps generating a 502 Bad Gateway error. The container is listed in the traefik dashboard as running and both the front end and backend are listed as working ok.

Here's the docker compose, does anything seem out of sorts?

  channels-dvr:
    image: fancybits/channels-dvr:latest
    container_name: channels-dvr
    network_mode: host
    restart: always
    hostname: channels
    ports:
      - "8089:8089"
    environment:
     - PUID=${PUID}
     - PGID=${PGID}
     - TZ=${TZ}
     - NVIDIA_VISIBLE_DEVICES=all
    volumes:
     - /opt/channels-dvr:/channels-dvr
     - ${USERDIR}/recordings:/shares/DVR 
     - /etc/localtime:/etc/localtime:ro
    devices:
     - /dev/dri:/dev/dri
    labels:
      traefik.enable: "true"
      traefik.backend: channels
      traefik.protocol: http
      traefik.port: 9020
      traefik.frontend.rule: Host:channels.$DOMAINNAME
      traefik.frontend.headers.SSLHost: channels.$DOMAINNAME
      traefik.docker.network: traefik_proxy
      traefik.frontend.passHostHeader: "true"
      traefik.frontend.headers.SSLForceHost: "true"
      traefik.frontend.headers.SSLRedirect: "true"
      traefik.frontend.headers.browserXSSFilter: "true"
      traefik.frontend.headers.contentTypeNosniff: "true"
      traefik.frontend.headers.forceSTSHeader: "true"
      traefik.frontend.headers.STSSeconds: 315360000
      traefik.frontend.headers.STSIncludeSubdomains: "true"
      traefik.frontend.headers.STSPreload: "true"
      traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
      traefik.frontend.headers.customFrameOptionsValue: "allow-from https:$DOMAINNAME"