Hassio as docker on Debian server - how to forward ttyUSB0

Hi all,
i sucefully installed hassio as docker on a debian server. After recovering the snapshot of my raspberry all works fine but i have only one issue (for now!!!) How i can forward the serial coverter mapped on ttyusb0 to the docker?


I’ve created a symlink for my USB Device (in case it somehow shows up on a different USB port / usbtty)
Then I’ve added this line to my docker compose:

        - /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XETWB5-if00-port0:/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XETWB5-if00-port0

For normal rocker command it would be

docker run --device /dev/ttyusb0 hello-world

Thanks for the tips.
Where i can found the docker compose file?
probably this file? /usr/share/hassio/homeassistant.json

here is my docker-compose file:

  version: '3'

      container_name: hass
      image: homeassistant/home-assistant:0.75.3
        - /home/cctv/docker_ha:/config
        - /etc/localtime:/etc/localtime:ro
        - /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XETWB5-if00-port0:/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XETWB5-if00-port0
      restart: always
      network_mode: host

@lolouk44 Do you have access to hassio component with this configuration?

I have the hassio_supervisor on docker and it automatically deploy home-assistant with privileged mode. I have access to all the serial of my host. This might be a security concern.

This isn’t Hass.io this is regular ha but via a docker.
If you need access to additional ports you need to manually list them

I know, I understand that you are not using the supervisor in your docker. Missing some features like snapshots and the add-on store.