Synology docker usb zigbee cc2652rb no ttyACOM or ttyUSB

I have a DS918+ running DSM 7 and here’s how I got it working… hope it helps the next person

follow the steps from here to get the files

https://github.com/robertklep/dsm7-usb-serial-drivers

create

/usr/local/etc/rc.d/usb-serial-drivers.sh

add the following

#!/bin/sh
case $1 in
  start)
    insmod /lib/modules/usbserial.ko > /dev/null 2>&1
    insmod /lib/modules/ftdi_sio.ko > /dev/null 2>&1
    insmod /lib/modules/cdc-acm.ko > /dev/null 2>&1
    insmod /lib/modules/cp210x.ko > /dev/null 2>&1
    insmod /lib/modules/ch341.ko > /dev/null 2>&1
    insmod /lib/modules/pl2303.ko > /dev/null 2>&1
    insmod /lib/modules/ti_usb_3410_5052.ko > /dev/null 2>&1
    ;;
  stop)
    exit 0
    ;;
  *)
    exit 1
    ;;
esac

start with

# /usr/local/etc/rc.d/usb-serial-drivers.sh start

and then typed

ls /dev/tty*

I now see

/dev/ttyUSB0

the zigbee2mqtt config file as follows

configuration.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://10.0.0.20   <---- ip of my mqtt instance
serial:
  port: /dev/ttyUSB0
frontend:
  port: 8080
advanced:
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false

I ran my container with the following

sudo docker run -d   --name=zigbee2mqtt  --restart=unless-stopped  --device=/dev/ttyUSB0  -e TZ=America/New_York -p 8080:8080 -v /volume1/data/Zigbee2MQTT/data:/app/data -v /run/udev:/run/udev:ro  koenkk/zigbee2mqtt