-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (86 loc) · 2.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (86 loc) · 2.63 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
dump1090:
image: dump1090-image
container_name: dump1090-fa
hostname: dump1090-fa
restart: on-failure:3
environment:
- LAT=37.91342 # NOTE: Replace with your actual latitude
- LON=-122.05898 # NOTE: Replace with your actual longitude
ports:
- "8080:8080" # Web interface for live map (lighttpd)
- "30001:30001" # RAW Beast input: Raw binary input from external sources (rarely used unless feeding from another decoder)
- "30002:30002" # RAW Beast output: Raw binary ADS-B output (Beast format) for external consumers (e.g. FR24, RBFeeder, other tools)
- "30003:30003" # SBS output (TCP): Human-readable ADS-B output in SBS-1 format (text-based, e.g. used by Virtual Radar Server)
- "30005:30005" # RAW Beast output (for PiAware): Main output port used by feeders like PiAware, FR24, etc. for MLAT and ADS-B data
devices:
- "/dev/bus/usb:/dev/bus/usb" # Pass USB device for RTL-SDR
privileged: true # ensures USB access across systems
networks:
- adsb-net
tar1090:
image: ghcr.io/sdr-enthusiasts/docker-tar1090:latest
container_name: tar1090
hostname: tar1090
restart: on-failure:3
environment:
- TZ=America/Los_Angeles
- BEASTHOST=dump1090-fa
- BEASTPORT=30005
- LAT=37.91342 # NOTE: Replace with your actual latitude
- LONG=-122.05898 # NOTE: Replace with your actual longitude
ports:
- "8078:80" # Web interface for tar1090
volumes:
- tar1090-globe-history:/var/globe_history
- tar1090-timelapse1090:/var/timelapse1090
- tar1090-graphs1090:/var/lib/collectd
tmpfs:
- /run:exec,size=64M
- /var/log
depends_on:
- dump1090
networks:
- adsb-net
piaware:
image: piaware-image
container_name: piaware
hostname: piaware
restart: on-failure:3
volumes:
- ./piaware.conf:/etc/piaware.conf
healthcheck:
test: ["CMD", "pgrep", "piaware"]
interval: 30s
timeout: 10s
retries: 3
depends_on:
- dump1090
networks:
- adsb-net
postgres:
image: postgres:17.4
container_name: pg_flight
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin123
POSTGRES_DB: flight
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7.4
container_name: redis_db
restart: unless-stopped
ports:
- "6379:6379"
volumes:
tar1090-globe-history:
tar1090-timelapse1090:
tar1090-graphs1090:
pgdata:
networks:
adsb-net:
driver: bridge