#Hi can someone help me to set up USB

1 messages · Page 1 of 1 (latest)

jade trail
#
version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /PATH_TO_YOUR_CONFIG:/config
      - /PATH_TO_OTHER_THING:/petunia
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
cedar wave
#

Hi Tinkerer

#

This is mine docker compose

#

homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /opt/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
devices:
- /dev/ttySDB1:/dev/ttySDB1
- /dev/sdb:/dev/sdb
restart: unless-stopped
privileged: true
network_mode: host

#

/dev/sdb:/dev/sdb and this is USb disk

crystal anvilBOT
#

To format your text as code, enter three backticks on the first line, press Shift+Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

jade trail
#

You wouldn't map /dev to the container

#

Mount the file system on the host, map the folder

cedar wave
#

So if this is my path to the disk... /media/newdrive

#

I should put in my docker compose:

jade trail
#
    volumes:
      - /media/newdrive:/media/towel
#

(or wherever you want it inside the container)

cedar wave
#

If I want all media folder than it is just :/media/

#

Thank you!!!!