iPhone isn't finding HomeAssistant "Accessory"

I just switched from Hass.io to HomeAssistant (via Docker) and when I enter in the HomeKit setup code into the Apple Home app, the accessory isn’t appearing. I suspect this might have to do with my docker-compose setup, so I’m including it just in case.

  homeassistant:
    container_name: homeassistant
    restart: always
    image: homeassistant/home-assistant
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
      - /dev/ttyUSB1:/dev/ttyUSB1
      - /dev/ttyACM0:/dev/ttyACM0
    volumes:
      - ${USERDIR}/docker/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
      - ${USERDIR}/docker/shared:/shared
    ports:
      - "8123:8123"
    privileged: true
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
    labels:
      - "traefik.enable=true"
      - "traefik.backend=homeassistant"
      - "traefik.frontend.rule=Host:homeassistant.${DOMAINNAME}"
      - "traefik.port=8123"
      - "traefik.docker.network=traefik_proxy"
      - "traefik.frontend.headers.SSLRedirect=true"
      - "traefik.frontend.headers.STSSeconds=315360000"
      - "traefik.frontend.headers.browserXSSFilter=true"
      - "traefik.frontend.headers.contentTypeNosniff=true"
      - "traefik.frontend.headers.forceSTSHeader=true"
      - "traefik.frontend.headers.SSLHost=noakland.com"
      - "traefik.frontend.headers.STSIncludeSubdomains=true"
      - "traefik.frontend.headers.STSPreload=true"
      - "traefik.frontend.headers.frameDeny=true"

You need to open more ports (for example 5353 udp/tcp) for homekit, or add the following line

network_mode: host

To your docker-compose file to expose the homekit port

network_mode works, but unfortunately it interferes with traefik.

Is this correct format for using ports? It doesn’t allow the bridge to show

ports:
  - "8123:8123"
  - "5353:5353/tcp"
  - "5353:5353/udp"

Seems like this is a problem others are experiencing.