#Hi can someone help me to set up USB
1 messages · Page 1 of 1 (latest)
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
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
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.
You wouldn't map /dev to the container
Mount the file system on the host, map the folder
So if this is my path to the disk... /media/newdrive
I should put in my docker compose: