Skip to content

Commit

Permalink
fix: remove tty and only mount usb subsystem (#156)
Browse files Browse the repository at this point in the history
closes #155
  • Loading branch information
fredclausen authored Nov 4, 2024
2 parents 518edd1 + be8efc8 commit be0ef15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. ⚠️
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit be0ef15

Please sign in to comment.