From f3f00d40f52b8c867d934329c1f07422f4886861 Mon Sep 17 00:00:00 2001 From: Carsten Date: Tue, 29 Oct 2024 18:38:08 +0100 Subject: [PATCH 1/2] fix: remove tty and only mount usb subsystem closes #155 --- docker-compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 86247a4..98c4d00 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,6 @@ services: # Note - if you want to enable telegraf for use with InfluxDB/Prometheus and Grafana, # use the following image instead: # image: ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder:telegraf - tty: true container_name: ultrafeeder hostname: ultrafeeder restart: unless-stopped @@ -106,7 +105,7 @@ services: - /opt/adsb/ultrafeeder/globe_history:/var/globe_history - /opt/adsb/ultrafeeder/graphs1090:/var/lib/collectd - /proc/diskstats:/proc/diskstats:ro - - /dev:/dev:ro + - /dev/bus/usb:/dev/bus/usb tmpfs: - /run:exec,size=256M - /tmp:size=128M From be8efc8d692ec389c54f8149890692d28108d4dd Mon Sep 17 00:00:00 2001 From: Carsten Date: Tue, 29 Oct 2024 18:55:23 +0100 Subject: [PATCH 2/2] docs: only mount usb subsystem --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eceeaa9..eec5fa4 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ You need to make sure that the USB device can be accessed by the container. The - 'c 189:* rwm' ... volumes: - - /dev:/dev:rw + - /dev/bus/usb:/dev/bus/usb:rw ``` The advantage of doing this (over simply adding a `device:` directive pointing at the USB port) is that the construction above will automatically recover if you "hot plug" your dongle. ⚠️This feature requires a recent version of docker-compose (version >=2.3). Make sure your system is up to date if dongles are not found. ⚠️