-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.6 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# R4D4RVU — fully offline ADS-B radar from your own RTL-SDR dongle.
#
# 1. Plug in your RTL-SDR dongle.
# 2. Copy .env.example to .env and set your receiver LAT / LON (and TZ).
# 3. docker compose up -d
# 4. Open http://localhost:8078/ (it launches straight into SDR mode)
#
# Two services:
# readsb — decodes ADS-B from the dongle and serves /data/aircraft.json on :8080
# radar — nginx that serves R4D4RVU and proxies /data/ to readsb (same-origin,
# so the browser can read the feed with no CORS / mixed-content issues)
services:
readsb:
image: ghcr.io/sdr-enthusiasts/docker-readsb-protobuf:latest
container_name: r4d4rvu-readsb
restart: unless-stopped
# USB access to the RTL-SDR dongle
device_cgroup_rules:
- 'c 189:* rwm'
volumes:
- /dev/bus/usb:/dev/bus/usb
environment:
- TZ=${TZ:-Etc/UTC}
- READSB_DEVICE_TYPE=rtlsdr
- READSB_RTLSDR_DEVICE=${RTLSDR_SERIAL:-0} # serial or index of the dongle
- READSB_GAIN=${GAIN:-autogain}
- READSB_LAT=${LAT:?set LAT in .env}
- READSB_LON=${LON:?set LON in .env}
- READSB_RX_LOCATION_ACCURACY=2
- READSB_STATS_RANGE=true
tmpfs:
- /run/readsb
- /var/log
# Optional: expose readsb's own web UI for debugging at http://localhost:8080/
# ports:
# - "8080:8080"
radar:
image: nginx:alpine
container_name: r4d4rvu-radar
restart: unless-stopped
depends_on:
- readsb
ports:
- "8078:80"
volumes:
- ./index.html:/usr/share/nginx/html/index.html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro