Fix docker-compose syntax for mounting USB devices

Mounting a device as a volume returns the error: `creating device nodes caused: mkdir /var/lib/docker/overlay2/b8[...]3ee8f/merged/dev/bus/usb: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type`
This commit is contained in:
Luke Korth 2021-01-30 22:23:15 -05:00 committed by GitHub
parent e9b1618364
commit 28ad42d2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,9 @@ services:
restart: unless-stopped restart: unless-stopped
privileged: true privileged: true
image: blakeblackshear/frigate:0.8.0-beta2-amd64 image: blakeblackshear/frigate:0.8.0-beta2-amd64
volumes: devices:
- /dev/bus/usb:/dev/bus/usb - /dev/bus/usb:/dev/bus/usb
volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- <path_to_config>:/config - <path_to_config>:/config
- <path_to_directory_for_clips>:/media/frigate/clips - <path_to_directory_for_clips>:/media/frigate/clips