Dongle-E with multipan RCP to use both ZHA and Matter

Hi all, I have bought some Aqara door and windows sensor P2 that works with matter over thread just to try them because I have a zigbee dongle-E that is compatible with this standard.

I follow some instructions on the web and I change the firmware of my dongle by putting a multipan RCP firmware that allows to use both zigbee and matter over thread.

Then I see that to use both I need another software level and so I added the multipan container in my docker compose configuration. This is my configuration:

version: '3.9'

services:
  home-assistant:
    container_name: home-assistant
    image: ghcr.io/home-assistant/home-assistant:latest
    volumes:
      - /home/lab/homeassistant:/config
      - /run/dbus:/run/dbus:ro
    devices:
      - /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20221130193241-if00:/dev/ttyACM0
    environment:
      - TZ=Europe/Rome
    network_mode: host
    restart: always

  matter:
    container_name: matter
    image: ghcr.io/home-assistant-libs/python-matter-server:stable
    restart: unless-stopped
    network_mode: host
    security_opt:
      - apparmor=unconfined
    volumes:
      - /home/lab/matter:/data
      - /run/dbus:/run/dbus:ro

  multipan:
    container_name: multipan
    image: b2un0/silabs-multipan-docker
    cap_add:
      - SYS_ADMIN
      - NET_ADMIN
    restart: always
    privileged: true
    network_mode: host
    devices:
      - /dev/ttyACM0
    volumes:
      - ./data/:/data
    environment:
      # OCPD environment variables
      DEVICE: "/dev/ttyACM0"
      BAUDRATE: "460800"
      CPCD_TRACE: "false"
      FLOW_CONTROL: "false"
      NETWORK_DEVICES: 0
      # OTBR-AGENT environment variables
      OTBR_ENABLE: 1
      BACKBONE_IF: "wlp1s0"
      OTBR_LOG_LEVEL: "debug"
      OTB_FIREWALL: 1
      OTBR_REST_LISTEN_PORT: "8081"
      # OTBR-WEB environment variables
      OTBR_WEB_PORT: "8086"
      # SOCAT environment variables
      NETWORK_DEVICE: ""
      # ZIGBEED environment variables
      EZSP_LISTEN_PORT: "9999"
      # UNIVERSAL FLASHER variables
      AUTOFLASH_FIRMWARE: 0
      FIRMWARE: "86"

  influxdb:
    image: influxdb
    container_name: influxdb
    restart: always
    ports:
      - '8086:8086'
    environment:
      - TZ=Europe/Rome
    volumes:
      - influxdb_data:/var/lib/influxdb2

  appdaemon:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: appdaemon
    volumes:
      - /home/lab/appdaemon:/conf
    ports:
      - 5050:5050
      - 12345:12345
    environment:
      - TZ=Europe/Rome
    restart: always

volumes:
  influxdb_data: {}

I also added the matter container but I don’t understand if I really need it, what I’m seeing on internet is confusing me.

I also see that if I want to use ZHA i have to use this configuration:

socket: //core-silabs-multiprotocol:9999

but when I try to set this configuration HA says me that is impossible to connect.