1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-23 22:30:09 +00:00

fix: remove tty and only mount usb subsystem (#156)

closes #155
This commit is contained in:
Fred Clausen 2024-11-04 08:12:47 -07:00 committed by GitHub
commit be0ef15efc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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. ⚠️

View file

@ -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